PDA

View Full Version : Texture Generator



Chimay
February 26th, 2009, 12:01 AM
A few years ago I wrote a small program that takes a sentence and generates an image from it. A sample sentence might look like this:

1000 red circles, 500 blue lines and 1 large black rectangle.

The program parses this string as a set of commands and draws an image.

Have a look here (http://shapevent.com/projects/command_drawing/)

The original was written in AS2 and it had a bunch of weird/convoluted features. This version is much simpler and written in AS3.

I'll probably add an additional handful of features to it over the next few weeks.

I'll also be posting the source for it on actionsnippet.com (http://actionsnippet.com) in the coming weeks.

Almost forgot that I wrote a small blog post (http://shapevent.com/sketchbook/2009/02/18/command-drawing/) talking about where the idea came from etc...

Dom_
March 1st, 2009, 01:29 PM
thats pretty cool stuff

Chimay
March 2nd, 2009, 12:14 PM
thanks Dom_

kreviii
March 9th, 2009, 07:32 AM
shnawsome

Chimay
March 11th, 2009, 03:56 PM
thanks kreviii...

birdwing
March 12th, 2009, 10:30 AM
thats cool!



but what does it have to do with textures?

Chimay
March 12th, 2009, 07:31 PM
you can use it to make simple textures.

If your looking for something else about textures... i recently wrote a little code to create seamless tiles, you can see it...

here (http://actionsnippet.com/?p=596) (scroll down to view the swf).

santanu.biz
March 13th, 2009, 04:35 AM
This is called lexical analyser in flash

I wish it was so powerful that i could write a story ...

"The sky was orange...
1000 Orchid leaves scattered
1 bench on 1 hill top..."