Context Free Art Forum Topic
*edit*
easy peasy now, just make :D
Showing posts with label context free. Show all posts
Showing posts with label context free. Show all posts
Tuesday, June 7, 2011
How to make/compile context free art 2.2.2 on ubuntu
So, you need LEX and YACC for some crazy wizard parsing these guys do so...
$sudo apt-get install flex bison
Then change line 54 in ./src-common/yglue.h
from:
size_t yyget_leng (void);
to:
int yyget_leng (void);
This is because one thing is expecting one data type and its like nah its something else, thanks to this post I was able to find the fix.
Then go along as usual...
$make cfdg
*computer rumbles*
$./cfdg
HOORAY! I'm thinking of adding some group tag support based on rule names from CFDG grammar to the output SVG files. I don't know C++, but I got a C- in the college class for it.
$sudo apt-get install flex bison
Then change line 54 in ./src-common/yglue.h
from:
size_t yyget_leng (void);
to:
int yyget_leng (void);
This is because one thing is expecting one data type and its like nah its something else, thanks to this post I was able to find the fix.
Then go along as usual...
$make cfdg
*computer rumbles*
$./cfdg
Missing input file
cfdg - 2.2.1(v11)
Usage:
cfdg [options] input.cfdg [output.png/svg]
or to pipe a cfdg file on standard input:
cfdg [options] - [output.png/svg]
The output file name is omitted if the -o option is used
Options: ... etc
HOORAY! I'm thinking of adding some group tag support based on rule names from CFDG grammar to the output SVG files. I don't know C++, but I got a C- in the college class for it.
Monday, July 7, 2008
Got capslocker working today + more

I set the fuses in avrdude finally thanks to keen101 from lady ada's tea party. What a help! Anyway the usb capslocker is finished and working! Wooo, also on ebay. Also I made a video of the echo killer my grandpa gave me, I guess he got it from hong kong or Malaysia or something. Also ordered a screwdriver to open up Nintendo stuff (small triwing) and the parts to make a MIDI -> Gameboy from mouser. That's going to be awesome, I also emailed the admin from 8 bit collective because he was supposed to making these in mass, and I was wondering about whether I could just order a PCB from him, if not then fuck it, I'll make my own. IM HARD EX CORE EX EX!! I also downloaded Henry Homesweet's album "Pocket Monster" it's pretty sick, I really like the song pocket monster, just has that darkish/happy mad scientist mechanical dance feel, which is hard to do in music imho. You can download the album here: THIRD ON THE LIST. and he actually talked to me on myspace after I added him - *swooon*
I made that pink black white thing up there in context free, inspired by the invader fractal set, except its not mirrored, I can't think of a way to mirror in context free.
USB CAPSLOCKER BELOWWWW
YOUTUBE VIDEO OF ECHO KILLAAAAAAAAAAAAAA
Thursday, July 3, 2008
Game of Go
The game of go draws many parallels with life, it rewards walking the fine line, a balance in everything. Many many pro games are won by just a point or 2, even half a point for making the 2nd move.
Yep, I created another picture with context free!
I also took a break from checking forums, posting, youtube and playing with context free to make a song in LSDJ. This is my first "full" LSDJ song, yay! I also watched the tail end of an anime called black cat or something, it had to do with nanobots and mutants and sweepers or something.
I also made a huge version of the go game and made a "song" and put it to the animation exported from context free:
I've been trying to think of a way to make a SOIC to 8-pin DIP adapter (ZIF type) But the leads are so close to eachother, I cant think of much , maybe some melty plastic that hardens with some really fine wires? I might be able to think of something... if they idea gods are appeased.
Also if you want the grammar file for the go, I've now uploaded to the CFA gallery, so check out my stuff here: nak's CFA gallery!
Yep, I created another picture with context free!
I also took a break from checking forums, posting, youtube and playing with context free to make a song in LSDJ. This is my first "full" LSDJ song, yay! I also watched the tail end of an anime called black cat or something, it had to do with nanobots and mutants and sweepers or something.
I also made a huge version of the go game and made a "song" and put it to the animation exported from context free:
I've been trying to think of a way to make a SOIC to 8-pin DIP adapter (ZIF type) But the leads are so close to eachother, I cant think of much , maybe some melty plastic that hardens with some really fine wires? I might be able to think of something... if they idea gods are appeased.
Also if you want the grammar file for the go, I've now uploaded to the CFA gallery, so check out my stuff here: nak's CFA gallery!
galaxies
I went to apache reclamation with my friend Charles from blast wave labs. It's a really fun place to go, a ton of old dusty test equipment, labware, electronic components, tubing wire, high voltage stuffs, etc! I was looking for some 10 AWG wire to build a welder out of a couple old microwave oven transformers, but all I could find was 6 and 8 gauge. I did pick up a couple quarter inch plugs and a 5 pin DIN plug just so the trip wasn't for nothing. I was planning on using those to make a cable that went from the C64 to my mixer, but the A/V port is an 8 pin DIN and the 5 pin wont even fit :(
I've also been working on more context free art:
I've also been working on more context free art:
//Use ASM as the random seed to get the same image
startshape FINAL
background { b -1}
rule SPIRAL {
CIRCLE { y -1 s .05 }
SPIRAL { y .1 x .9 r 70 size .99 b .99 h 15 }
}
rule GALAXY {
SPIRAL { }
GALAXY { x 1.5 y 1.5 size -.99 r 17 skew 5 10 }
}
rule NEB {
CIRCLE { s 5 sat .5 h 10 a .5 }
NEB { y 1 r 30 s -.90 b .01 h .5 }
}
rule NEB {
CIRCLE { s 5 sat .5 h 278 a .5 }
NEB { y 1 r 30 s -.90 b .03 h .5 }
}
rule STARFIELD {
CIRCLE { s .1 b 1 }
STARFIELD { s .90 x 8 y 4 r 70 }
}
rule STARFIELD {
CIRCLE { s .15 b 1 }
STARFIELD { s .90 x 4 y 8 r 34 }
}
rule ANOTHER{
GALAXY { }
NEB { z -1 x -2 y 4 s .5 }
ANOTHER { x 2 y 15 size -.75 r 17 }
}
rule ANOTHER{
GALAXY { }
ANOTHER { x -1 y 20 size .90 r 30 }
}
rule ALL {
ANOTHER { }
ANOTHER { x 5 y -4 r 95 }
STARFIELD { z -2 x -2.5 }
}
rule FINAL {
ALL { r 90 }
}
Tuesday, July 1, 2008
Context Free

So it's 8PM, I didn't sleep in my bed last night because it was hot, right now it's 91.4º F inside (not that I'm complaining...) and 97.9º F outside. I shipped off some packages for eBay. I must've just goofed away a bunch of time on the internet because I don't really recall doing anything much until I decided to open up "Context Free", I downloaded the program yesterday, but it looked too complex to learn at 12:00AM.
It takes very little time to pick up on if you are familiar with C syntax (you don't have to know C, I sure don't) it probably won't take much longer if you aren't familiar. Anyway, first thing I made was 2 circles a square and another circle in the configuration of mammalian male anatomy, how mature. Then I began to work on colors and making a tear drop shape, I learned how to do recursion, if you decide to download context free, I recommend going to the "Examples" menu and doing lesson one, I can't speak for lesson 2 yet!
Anyway, I made that image up there with this 'code' (I call it lollipop, remove the comment on square to make actual lollipops!) :
startshape FINAL
background { b -1}
rule LOLLIPOP{
CIRCLE { x 0 y 0 size 1 sat 1 }
//SQUARE { y -1 s .95 .05 z 1 r 90 b 1. }
}
rule OG {
LOLLIPOP {}
OG { y .6 x .9 r 20 size .95 b .07 h 15 }
}
rule OTHER {
OG { }
OTHER { x .8 y .7 size -.95 r 17 }
}
rule ANOTHER{
OTHER { }
ANOTHER { x 2 y 15 size -.75 r 17 b .01}
}
rule FINAL {
ANOTHER { r 90 }
ANOTHER {r 180 x -5 y 10} //take this out for just a horizontal shape
}
The language is really simple and logical, I can see this being loads of fun! I really need to eat something though, also when I go to sleep I have thoughts of picking up my calculus book and doing all the work in it. I really don't want to go back to school though, I'd rather just be an autodidact, but I need to make sure I'm not being a poopy head and just playing with context free or playing TF2 all day.
I also remembered that I made a song in the morning, when I turned on the computer to get the addresses for the ebayers, you can listen here. I used my microkorg and a little FM radio to phaser the audio coming from a spanish radio station. I also used a program called MEAP to chop up the beat and synth sounds at the end there.
Subscribe to:
Posts (Atom)