Hamumu Forum

Hamumu Forum (http://hamumu.com/forum/index.php)
-   General Blabber (http://hamumu.com/forum/forumdisplay.php?f=36)
-   -   'Context Free' - Groovy Art Thingy (http://hamumu.com/forum/showthread.php?t=13582)

AtkinsSJ 10-05-2007 01:42 PM

'Context Free' - Groovy Art Thingy
 
Context Free lets you create whizzy-looking arty things using pretty simple code. It's awesome! Linky
Post any cool code here.
This makes a cool Octopus-like thing.
Code:

startshape Octopus

background {b -1}

rule Octopus {
    8* {r 45} Swirl {}
}

rule Swirl {
    150* { size 0.9 x 2 y 1.2 r 10}
        Star { }
}
rule Star {
    6* {r 30 } SQUARE { b 1 }
    CIRCLE { b -1 }
    Star {size 0.5 b 0.5}
}

Just copy and paste it into a new drawing, and click on Render.

souperzombie 10-05-2007 01:45 PM

Re: 'Context Free' - Groovy Art Thingy
 
:shock: it looks very weird

Mr.Onion 10-05-2007 01:47 PM

Re: 'Context Free' - Groovy Art Thingy
 
Swiiiirrrlllyly...... :mesmirized:

Anyway, do you know what the swirls are called? :p

souperzombie 10-05-2007 01:49 PM

Re: 'Context Free' - Groovy Art Thingy
 
Umm...Swirls? Bendy Lines? Parts of a shape? A really random name? A really Wierd name?

Julian 10-05-2007 02:21 PM

Re: 'Context Free' - Groovy Art Thingy
 
Cool, I'll install it when I finish with VS2005.

AtkinsSJ 10-06-2007 02:29 AM

Re: 'Context Free' - Groovy Art Thingy
 
OK, to annotate it:
Code:

startshape Octopus //Tells it to draw 'Octopus' first.

background {b -1} //Makes the background black.

rule Octopus { //The instructions for drawing Octopus.
    8* {r 45} Swirl {} //Draw 8 Swirls, rotating 45 each time.
} // Rotation is in degrees.

rule Swirl { //Instructions to draw Swirl.
    150* { size 0.9 x 2 y 1.2 r 10} //These 2 lines tell it to draw
        Star { } //150 Stars, moving across 2 and up 1.2, then
} //rotating by 10 degrees.

rule Star { //Instructions for Star.
    6* {r 30 } SQUARE { b 1 } //Draw 6 white squares, rotated 30 deg each time.
    CIRCLE { b -1 } //Draw a black circle in the middle.
    Star {size 0.5 } //Recurs, drawing itself again, at half size.
} //Don't worry - it will stop recurring once it's too small to see.

You can write the whole words, or just use letters:
r means rotate
s means size
x means move on x axis.
y means... same, but on y axis.
b is brightness.

ElMikkino 10-06-2007 09:07 AM

Re: 'Context Free' - Groovy Art Thingy
 
Aaaaahhh! Code! I am allergic!
http://smileys.smileycentral.com/cat/8/8_1_226.gifSee?

Julian 10-06-2007 08:30 PM

Re: 'Context Free' - Groovy Art Thingy
 
Code:

startshape Octopus //Tells it to draw 'Octopus' first.

background {b -1} //Makes the background black.

rule Octopus { //The instructions for drawing Octopus.
    8* {r 45} Swirl {} //Draw 8 Swirls, rotating 45 each time.
} // Rotation is in degrees.

rule Swirl { //Instructions to draw Swirl.
    150* { size 0.9 x 2 y 1.2 r 10} //These 2 lines tell it to draw
        Star { } //150 Stars, moving across 2 and up 1.2, then
} //rotating by 10 degrees.

rule Star { //Instructions for Star.
    7* {r 10 s 1.1} SQUARE { b 1 } //Draw 6 white squares, rotated 30 deg each time.
    CIRCLE { b -1 } //Draw a black circle in the middle.
    } //Don't worry - it will stop recurring once it's too small to see.

My version.

Ryuinfinity 10-07-2007 12:30 PM

Re: 'Context Free' - Groovy Art Thingy
 
Those free smilys give you spyware! You should get your computer scanned!

Mr.Onion 10-07-2007 12:32 PM

Re: 'Context Free' - Groovy Art Thingy
 
The answer is: Fractals!

ElMikkino 10-07-2007 04:20 PM

Re: 'Context Free' - Groovy Art Thingy
 
Quote:

Originally Posted by Ryuinfinity (Post 136072)
Those free smilys give you spyware! You should get your computer scanned!

Meh. Nothing's happened. A virus tells people when it's there. And, even if it doesn't, the last time I scanned, nothing turned up. TRUST NORTON (WHICH IS STILL VERY ANNOYING!!!)!

EDIT: Plus, why would I want to get rid of them? They also come with free screensavers, free Internet cards, and free cursors! These things rok!

ducklegion 10-07-2007 04:23 PM

Re: 'Context Free' - Groovy Art Thingy
 
Contex Free sounds confusing . .

Mr.Onion 10-08-2007 08:34 AM

Re: 'Context Free' - Groovy Art Thingy
 
Actually, Norton doesn't pick up everything, and not all viruses draw attention to themselves. :p

ElMikkino 10-08-2007 09:39 AM

Re: 'Context Free' - Groovy Art Thingy
 
Meh, nothing's happened yet. I've had these since March, or something!

pizza 10-14-2007 02:15 AM

Re: 'Context Free' - Groovy Art Thingy
 
And a .gif file can't infect anything.

I downloaded ContextFree but haven't learned to do anything yet. I should, it looks so cool.

varkarrus 10-15-2007 07:55 AM

Re: 'Context Free' - Groovy Art Thingy
 
Apparently, I had a very well hidden spyware for longer then I have been on the forums that made it so that I couldn't change programs using the taskbar! For some reason, Quick launch took up the taskbar, and if I removed it, My taskbar wuld completly dissappear!


All times are GMT -7. The time now is 02:48 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.