Skip to content

Instantly share code, notes, and snippets.

@nnirror
Created January 7, 2024 17:05
Show Gist options
  • Save nnirror/ecab448c1cbe504bb42db2756c5a3a86 to your computer and use it in GitHub Desktop.
Save nnirror/ecab448c1cbe504bb42db2756c5a3a86 to your computer and use it in GitHub Desktop.
genuary10
$('gen10')
.silence(1000000)
.iter(6, () => {
this.sup(_.silence(1000000)
.tri2d(0, 67, 999, 67, 500, 933, 0.5)
.rotate(i * 60))
})
.append(_.silence(1500000))
.prepend(_.silence(1500000))
.sup(_.iter(6, () => {
this.sup(_.silence(1000000)
.tri2d(0, 67, 999, 67, 500, 933, 0.5)
.rotate(i * 60))
}), 0.125, 4000000)
.sup(_.iter(6, () => {
this.sup(_.silence(1000000)
.tri2d(0, 67, 999, 67, 500, 933, 0.5)
.rotate(i * 60))
}), 0.625, 4000000)
.invert().slices(8,()=>{
if (s == 0 || s == 7 ) {
this.times(0);
}
else {
this.times(1);
}
})
.saveimg('gen10', [_.ramp(0, 1, 4000000)
.rotate(40).expo(4), _.ramp(1, 0, 4000000)
.rotate(40).expo(4), _.ramp(rf(), rf(), 4000000)
.rotate(40).expo(4),
])
.once();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment