Skip to content

Instantly share code, notes, and snippets.

View timseverien's full-sized avatar

Tim Severien timseverien

View GitHub Profile

neural-abstract-art-image-sequence.js can be used to download a sequence of images from Abstract Art by a Neural Network.

Using software like VirtualDub, you can import the image sequence and turn it into a video.

Usage

Pasting the contents of neural-abstract-art-image-sequence.js in the developer tools console of your favourite browser should work.

@timseverien
timseverien / README.md
Last active January 3, 2018 18:14
Blender k-means fractions

K-means Fractions Blender Script

This script splits a mesh in pow(CLUSTER_COUNT, ITERATION_COUNT) fractions in pseudo-random shapes.

  1. Select an object
  2. Distribute an amount of random points (SEED_POINT_COUNT) in the mesh of that object
  3. K-means the points into k clusters (CLUSTER_COUNT)
  4. Find the convex hull of the clusters, creating meshes
  5. Remove original object
  6. Go to step 1
@timseverien
timseverien / SassMeister-input-HTML.html
Last active August 29, 2015 14:13
Generated by SassMeister.com.
<div class="output"></div>
@timseverien
timseverien / SassMeister-input.scss
Last active August 29, 2015 14:13
Generated by SassMeister.com.
// ----
// libsass (v3.1.0-beta)
// ----
// To edit shapes, scroll all the way down to the bottom
//================================
// Functions used for sorting
//================================
@timseverien
timseverien / _circle.scss
Last active August 29, 2015 14:13
2D renderer in Sass
@function circle($obj, $target) {
$color: map-get($obj, color);
$position: map-get($obj, position);
$radius: map-get($obj, radius);
$x: map-get($target, x);
$y: map-get($target, y);
$xd: $x - map-get($position, x);
$yd: $y - map-get($position, y);