____ __ __ ____ ____
/ __| | | ___/ ___|
| __| | |__ | __)
|_| `_____|____/____/ JS1K
Spread the love by absorbing all the positive energy around you.
In this simple game you control an energy ball through seven levels of love.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Mathieu 'p01' Henri http://www.p01.org/releases/ | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
void setup(){ | |
size(500,500,P3D); | |
smooth(8); | |
} | |
float f(int i, int j, float q){ | |
return(q*(noise(.2*(i+400-.05*frameCount),.2*(j+90))-.5)); | |
} | |
float s; |
int[][] result; | |
float time; | |
void setup() { | |
setup_(); | |
result = new int[width*height][3]; | |
} | |
void draw() { | |
for (int i=0; i<width*height; i++) |
Mini projects by Maxime Euzière (xem), subzey, Martin Kleppe (aemkei), Mathieu Henri (p01), Litterallylara, Tommy Hodgins (innovati), Veu(beke), Anders Kaare, Keith Clark, Addy Osmani, bburky, rlauck, cmoreau, maettig, thiemowmde, ilesinge, adlq, solinca, xen_the,...
(For more info and other projects, visit http://xem.github.io)
(Official Slack room: http://jsgolf.club / join us on http://register.jsgolf.club)
/*! | |
* | |
* welcome to wavepot | |
* ------------------ | |
* | |
* this is a live editor. you create a function named `dsp` | |
* that accepts the parameter `t`, the coefficient of time, | |
* which you use to generate a single sample (range -1..1) | |
* |