Even if you tried to finish it, it would be to laggy to even know what is going on not a bad Sierpinski triangle.

# Official Flower Grove Topic

**shoodong**#30

Very fun!

So many squares and triangles and rectangles!

And it seems like nobody likes my drawings.

**Magicfloatincow**#31

Nice!! looks like it took about 5/10 minutes loop is very useful for stuff like this.

**shoodong**#33

Whats that? A pillow?

Oh by the way, I have another drawing:

## Code

```
loop {
var x = this.pos.x;
var y = this.pos.y;
var one = Math.floor((Math.random() * 10) + 0);
var two = Math.floor((Math.random() * 10) + 0);
this.setFlowerColor("white");
this.moveXY(x + one, y + two);
this.moveXY(x + one, y - two);
this.moveXY(x - one, y + two);
this.moveXY(x - one, y - two);
this.setFlowerColor("red");
this.moveXY(x + one, y - two);
this.moveXY(x + one, y + two);
this.moveXY(x - one, y + two);
this.moveXY(x + one, y - two);
this.moveXY(x - one, y + two);
this.moveXY(x + one, y - two);
}
```

**shoodong**#36

I tried to draw a âdinosaurâ or a âdragonâ but there wasnât enough time for that.

## Code

```
loop {
var x = this.pos.x;
var y = this.pos.y;
var one = Math.floor((Math.random() * 10) + 0 * 54.4);
var two = Math.floor((Math.random() * 10) + 0 * 86);
this.setFlowerColor("red");
this.moveXY(x - one, y - two);
this.setFlowerColor("yellow");
this.moveXY(x + one, y + two);
this.setFlowerColor("white");
this.moveXY(x + one, y - two);
this.setFlowerColor("pink");
this.moveXY(x - one, y + one);
this.setFlowerColor("blue");
this.moveXY(x + two, y - two);
this.setFlowerColor("purple");
this.moveXY(x - one, y);
this.setFlowerColor("random");
this.moveXY(x + one, y);
this.moveXY(x - one, y);
this.moveXY(x + two, y);
this.moveXY(x - two, y - 1);
this.moveXY(x + two, y - 2);
this.moveXY(x - 3, y - two);
}
```

**Feinty**#38

Vice versa wizard 101 got it from the internet

[Now for something completely differentâŚ]

Wait I just had a realization why does the forest have a grove if you get the ring in the mountain?

**J_F_B_M**#40

Retroactive level-unlock, it happens. The level that unlocks Cavern Survival should also be in the forest (so newbies donât accidentally stumble into Multiplayer unprepared I guess).

**Pancaken**#43

**zuf**#44

Tharin is our special snowflake.

(Koch fractals; Uses code from the

*Snowflakes on the Ice*and

*Fractalization*levels)

Feedback: Snowflakes on the ice

**J_F_B_M**#45

Nice representation of how the Koch-Fractal interacts with itself. Note how the smaller fractal always completes the larger fractal.

Creating a New Class : Crafter

**coba52**#46

Excuse me ,may i disturb you for a second?

and i have a question !!

what is skip doing in this function

ââ'

this.drawPolyStars = function(center, radius, sides, skips, startAngle)

âââ

what is skip??

**Vlevo**#47

draw Poly(gon) Stars is a combo function that draws both polygons and stars because the only difference between them is that the stars SKIP vertices of a polygon with the same number of sides. So skips is the number of vertices to skip. (for example: Sides 5 & skip 0 = a pentagon which becomes a pentagram if you skip 1 or 2 vertices. It draws the pentagon âbackwardsâ if you skip 3. And draws nothing (a dot?) if you skip four.)

**MiniGru**#54

Hi everyone,

Here you have a contribution. Basically, takes a text string and writes it to the screen, according to size, color, text spacing and number of columns and rows.

Iâm currently adding more characters, such as numbers and symbols, and I want to add an option to color every character from an array.

~~Iâll post the code soon, i want to check some issues~~

UPDATE: If you want to see the code, go to the post: [Mountain Flower Grove] Flower Text Box

**theoden**#55

A heart floating on waves

Just 2 functions were used: one for a heart shape and one for a cosine wave. Sorry, they may look pretty hacky.

## Functions code

```
def drawWave(y, x_first, x_last, dense=0.05, amp=10, rtl=False):
X_STEP = 0.5
self.toggleFlowers(False)
def draw(x):
cy = Math.cos(x*dense) * amp
self.moveXY(x, y + cy)
self.toggleFlowers(True)
if rtl:
x = x_last
while x >= x_first:
draw(x)
x -= X_STEP
return
x = x_first
while x <= x_last:
draw(x)
x += X_STEP
def heart(x, y, scale=1):
self.toggleFlowers(False)
PI = Math.PI
def xy(t):
rad_in_deg = PI/180.0
coef = 0.01 * (-t*t + 40*t + 1200)
return (coef * Math.sin(t*rad_in_deg), coef * Math.cos(t*rad_in_deg))
def draw(t, mul=1):
current_x, current_y = xy(t)
current_x *= scale*mul
current_y *= scale
self.moveXY(x + current_x, y + current_y)
self.toggleFlowers(True)
for t in range(61):
draw(t)
self.toggleFlowers(False)
for t in range(60, -1, -1):
draw(t, -1)
```

The specific function arguments for the picture is a secret of art. The main idea is that just slightly varying parameters of shapes you can get something interesting.