Zoltán Majoros, freelancer iOS developer living in Bonn, Germany.

Contact: info@arcanelab.com

Posts Tagged: creative coding

Text

Move mouse over the image to change parameters

You can download the binaries (Mac/Win) as well as the sources here.

source: (not so polished, but you get the idea)

int halfw;
int halfh;

void setup()
{
  size(480,350);
  halfw = width/2;
  halfh = height/2;
  smooth();
}

float d = 0.0;
float PICONST = 2 * PI / 380;

void draw()
{
  float szirom = 10;
  float mouseXconst = (mouseX/(float)width);
  background(0);
  int i=0;
  while(i<380*4*mouseXconst)
  {
    float t = i*PICONST/4/mouseXconst;
    float sint = sin(t);
    float cost = cos(t);

int r = cos(t*1)*128+128;
int g = sin(t*3)*128+128;
int b = sin(t*2)*128+128;
stroke(r,g,b,128); float originx = halfw+sint*50; float originy = halfh+cost*50; float destx = halfw+sint*halfh*0.85; float desty = halfh+cost*halfh*0.85; float sziromConst = t*szirom+d; float finalx = destx + sin(sziromConst) * 20; float finaly = desty + cos(sziromConst) * 20; line(originx, originy, finalx, finaly); i++; } // while d += (mouseY/(float)height)*0.5 - 0.25; }

Short demo of Zajal’s live coding, graphics and export functionality.

See more sketches at sketch.zajal.cc
Get the language at zajal.cc

Polycode

Polycode is a free, open-source, cross-platform framework for creative code. You can use it as a C++ API or as a standalone scripting language to get easy and simple access to accelerated 2D and 3D graphics, hardware shaders, sound and network programming, physics engines and more.

The creative Flash scene is amazing. I really enjoy watching presentations from various Flash events to be inspired by the talented speakers.

In the following weeks I’d like to share a couple of videos from such events with you. The first one is by Ralph Hauwert, presented at the Flash Camp Tokyo in 2010. I’m especially happy to see the demoscene mentioned in the video. The talk is titled “Skunkworks”.

Enjoy and be inspired!