Official Flower Grove Topic


#28

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


#30


Very fun!

So many squares and triangles and rectangles!


And it seems like nobody likes my drawings.


#31

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


#32

Time to go to bed.


#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);
}

#34

Nice watch… did you run out of time at the bottom or something?


#35


#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);
}

#37

Isnt that the spell circle triangle from wizard101?


#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?


#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).


#42

Ah now I get it btw nice hat


#43

Here just two simple fibonacci spirals.
Nothing special, but I think it looks kinda cool.^^


#44

Tharin is our special snowflake.


(Koch fractals; Uses code from the Snowflakes on the Ice and Fractalization levels)


Feedback: Snowflakes on the ice
#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
#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??


#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.)


#48

Beautiful! How long did it take you to make this master piece?


#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


#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.

Bonus: heart curves inspiration link