- jan.1: Triple nested loop
- jan.2: Rule 30 (elementary cellular automaton)
- jan.3: Make something human.
- jan.4: Small areas of symmetry.
- jan.5: Do some code golf! How little code can you write to make something interesting? Share the sketch and its code together if you can.
- jan.6: Triangle subdivision.
- jan.7: Generate some rules, then follow them by hand on paper.
- jan.8: Curve only.
- jan.9: Interference patterns.
- jan.10: Tree
- jan.11: Use something other than a computer as an autonomous process (or use a non-computer random source).
- jan.12: Use an API (e.g. the weather).
- jan.13: Do not repeat.
- jan.14: SUBDIVISION
- jan.15: Let someone else decide the general rules of your piece.
- jan.16: Circles only.
- jan.17: Draw a line, pick a new color, move a bit.
- jan.18: One process grows, another process prunes.
- jan.19: Increase the randomness along the Y-axis.
- jan.20: No loops.
- jan.21: function f(x) { DRAW(x); f(1 * x / 4); f(2 * x / 4); f(3 * x / 4); }.
- jan.22: Draw a line. Wrong answers only.
- jan.23: #264653 #2a9d8f #e9c46a #f4a261 #e76f51, no gradients. Optionally, you can use a black or white background.
- jan.24: 500 lines.
- jan.25: Make a grid of permutations of something.
- jan.26: 2D Perspective.
- jan.27: Monochrome gradients without lines.
- jan.28-29: Use sound. - Any shape, none can touch.
- jan.30: Replicate a natural concept (e.g. gravity, flocking, path following).
- jan.31: Search for "eno's oblique strategies", obtain one, that is your prompt for today.
node version 14.12.x
yarn
// cd into the prompt you wan't to run
cd prompts/jan.1
yarn start
cp -r resources/template prompts/jan.x
// include script
<script src="../../../whammy.js"></script>
// top level
const encoder = new Whammy.Video(45);
// draw()
encoder.add(drawingContext);
if (frameCount === 45 * 10) {
encoder.compile(false, function (output) {
window.open(URL.createObjectURL(output));
});
noLoop();
}