Fun Fact of the Day: In chess, the knight can visit each square exactly once.
This is called The Knight’s Tour.
Fun Fact of the Day: In chess, the knight can visit each square exactly once.
This is called The Knight’s Tour.
As it’s 2:39am and I’m fighting back a MASSIVE headache trying to learn how to embed javascript on Tumblr (I’m adamant it’s possible), I’m just gonna post another gif. For this little sketch, I used the KineticType example code and modified it a fair amount. Firstly, I went to the effort of turning an old type experiment into a TTF using FontLab Studio - that experiment is the type present in this gif. I then created a .vlw file so that the type could be used inside Processing. I centred the type using translate coordinates (probably in a really round-about way), and didn’t do much to the ‘sway’ effect that was present in the original code. I’ve not learnt much about use of floats or integers, and I’ve learnt next to fuck all about sin calculations or matrices / matrix stacks. I placed a background image on the .pde fairly simply using PImage.
I’ve included a picture of what I actually look like as a reference. I edited some sample code provided by the Processing default library, the most edit being the following;
void keyPressed() {
String d = String.valueOf(day());
String m = String.valueOf(month());
String y = String.valueOf(year());
String h = String.valueOf(hour());
String mn = String.valueOf(minute());
String s = String.valueOf(second());
save(“scan” + y + m + d + “-” + h + “-” + mn + “-” + s + “.png”); }
What the code above does is it saves an image whenever I press any key - within the ‘keyPressed’ command, I have included a 'save’ command. What all the Strings mean is basically they refer to my computers clock, and I’ve included them inside the 'save’ command, in order to name the files chronologically - I’ve included all of that code simply to make cataloguing the individual images easier :)
Also, I’ve included ’+ “-” +’ between each of the hour/minute/second strings so that when the minute changes, the file would be called:
scan201249-3-12-3 as opposed to scan2012493123
Again, this is for cataloguing purposes, as before (when the dashes weren’t included), each time the minute changed, the order of the files would get fucked up, as it would put 10 before 9 and so on, when chronologically, that’s completely backwards.
hope this helps anyone having trouble with saving images and such! It’s all very basic I know, but I only started doing this stuff the day before yesterday, must have been at it for a total of about 2 hours!
Tumblr Radar day #5.2
This technique is fucking awesome:
considering this is the original, it’s incredible what adding passages of text to the original’s code can do - most fascinating is the area surrounding the gloves and what has happened to the type at the top of the image.
enjoy ur monday
Tumblr Radar day #8.3
Microsite for Peace is up, and somehow it’s mobile ready? cool! www.kiatas.me/peace/ - it will change with time and the illustrations will be archived