mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
FilledRectangle class
This commit is contained in:
parent
9705f03c15
commit
f0388c5d48
1 changed files with 13 additions and 0 deletions
|
@ -253,5 +253,18 @@ class Square(Rectangle):
|
|||
|
||||
|
||||
|
||||
class FilledRectangle(Mobject1D):
|
||||
DEFAULT_CONFIG = {
|
||||
"color" : GREY,
|
||||
"height" : 2.0,
|
||||
"width" : 4.0,
|
||||
}
|
||||
def generate_points(self):
|
||||
self.add_points([
|
||||
(x, y, 0)
|
||||
for x in np.arange(-self.width, self.width, self.epsilon)
|
||||
for y in np.arange(-self.height, self.height, self.epsilon)
|
||||
])
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue