Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[0 0 0 0 0]
- [0 0 0 0 0]
- [0 0 0 0 0]
- [0 0 0 0 0]
- [0 0 0 0 0]]
- [[0 0 1 0 0]
- [0 0 0 0 0]
- [0 0 0 0 1]
- [0 1 0 0 0]
- [0 0 0 0 0]]
- [[0 0 1 0 0]
- [0 0 1 1 0]
- [0 1 1 1 1]
- [0 1 1 0 0]
- [0 0 0 0 0]]
- arr = np.zeros([5,5])
- shapePoints = [[0,2], [2,4], [3,1]]
- valueToFill = 1
- arr = fillShape(arr, shapePoints, valueToFill)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement