b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 9402636 (Thread)

# nice and woo
what how with are they made by? do tell.
(, Tue 28 Apr 2009, 17:14, archived)
# This one:
by cunning use of this code, and no, I'm not kidding.


rule START {
DRAW { flip 180 x 9 r 15 hue 73 sat 0.8 b 0.8 }
}


rule DRAW {
SHAPE { }
SHAPE { flip 90 }
DRAW { y 1 s 0.999 hue 0.5}
}

rule DRAW 0.05 {
DRAW { s 0.8 alpha -0.5 flip -45}
DRAW { s 0.8 hue 3 alpha -0.005 flip 45}
}

rule DRAW 0.0005 {
SHAPE { s 10 5 alpha -0.5 }
DRAW { hue 3 alpha -0.005 b 0.05}
}

rule DRAW 0.001 {
DRAW { }
DRAW_BALL { s 0.5 0.9 }
}

rule SHAPE {
LINE { }
SHAPE { x 1 alpha -0.2}
}

rule SHAPE 0.7 {}



rule DRAW_BALL {

SHAPE { hue 10 }
SHAPE { flip 90 hue 10 }
SHAPE { y 10 hue 15 }
SHAPE { y 10 flip 90 hue 15 }
SHAPE { y 20 hue 20 }
SHAPE { y 20 flip 90 hue 20 }
SHAPE { y 30 hue 25}
SHAPE { y 30 flip 90 hue 25}

DRAW_BALL { y 15 x 1 s 0.99 r 5 alpha -0.005 b -0.0005}
}

rule DRAW_BALL {
DRAW_BALL { alpha -0.5 }
}

rule DRAW_BALL {
DRAW_BALL { alpha 0.5 }
}

rule DRAW_BALL 0.4 {
DRAW { b 0.5 alpha -0.005 }
DRAW_BALL { }
}

rule DRAW_BALL {
SHAPE { s 10 5 }
DRAW_BALL { alpha 0.5 }
}

rule SHAPE {
LINE { }
SHAPE { x 0.3 alpha -0.5 r 5}
}

rule SHAPE {
LINE { }
SHAPE { x 0.3 alpha -0.5 r -5}
}

rule SHAPE 0.1 {}


rule LINE {SQUARE { s 0.1 15 }}
rule LINE {SQUARE { s 0.1 10 }}
rule LINE {SQUARE { s 0.9 10 hue 20 }}
rule LINE {SQUARE { s 0.6 5 }}
rule LINE {SQUARE { s 0.3 15 b 0.6 }}
rule LINE 0.5 {SQUARE { s 3 15 b 0.6 }}
(, Tue 28 Apr 2009, 17:16, archived)
# I scrolled so hard it made by balls ache.
(, Tue 28 Apr 2009, 17:16, archived)
# ...for the random quote
(, Tue 28 Apr 2009, 17:17, archived)
# that's cleared that up, then...
(, Tue 28 Apr 2009, 17:17, archived)
# What do you want from me?
That's the code that draws the image!

*sobs*
(, Tue 28 Apr 2009, 17:17, archived)
# ...so if I just enter that I'll get some proper funky image?
Cool!

*fires up MS Word*
(, Tue 28 Apr 2009, 17:18, archived)
# Well, not in Word...
;-)
(, Tue 28 Apr 2009, 17:19, archived)
# Ah so it's an Excel job then...
complicated, complicated...
(, Tue 28 Apr 2009, 17:23, archived)
# Ok carry on
Nothing to see
(, Tue 28 Apr 2009, 17:17, archived)
# who knew maths could be so pretty?
(, Tue 28 Apr 2009, 17:17, archived)
# HAHAHA TELL ME AGAIN HUMAN
sorry i felt justified to do that
(, Tue 28 Apr 2009, 17:17, archived)
# This looks more appealing than the Matlab code I'm grappling with.
(, Tue 28 Apr 2009, 17:17, archived)
# witchcraft!!!
(, Tue 28 Apr 2009, 17:17, archived)
# Pretty much, yep
:D
(, Tue 28 Apr 2009, 17:19, archived)
# With what do you use that code with?
Context Free art?
(, Tue 28 Apr 2009, 17:19, archived)
# It's called Context Free
generative art type thingy
(, Tue 28 Apr 2009, 17:21, archived)
# Looking at that now
looks fun.
(, Tue 28 Apr 2009, 17:22, archived)
# It's great, and the code sequence is really easy.
It's my cure for ActionScripting, which I am beginning to dislike intensely.
(, Tue 28 Apr 2009, 17:36, archived)
# Yes
ActionScript is fairly bizarre.
(, Tue 28 Apr 2009, 18:05, archived)
# A cauldron.
(, Tue 28 Apr 2009, 17:21, archived)
# Print it out, roll it up and smoke it.
Makes you see stars maaaan
(, Tue 28 Apr 2009, 17:22, archived)
# Smoking toner probably would do that.
(, Tue 28 Apr 2009, 17:26, archived)
# Hmmmmmm
can you just add functions into this, like in javascript? For instance SHAPE { hue foo }, could foo be a value returned from a function?
(, Tue 28 Apr 2009, 18:08, archived)