#genuary31 prompt: Pixel sorting.
Facet code written in about 5 minutes, missed about 20 days in the middle but stayed true to my promise to do some of the genuary challenges.
image 1:
$('s')
.noise(1000000)
.slices2d(4, () => {
this.slices2d(16, () => {
this.sort()
.slices2d(Math.pow(ri(2, 20), 2), () => {
this.sort()
.rotate(choose([0, 90, 180, 360]))
})
})
})
.saveimg(ts(), [_.ramp(rf(), rf(), 1000000), _.ramp(rf(), rf(), 1000000), _.ramp(rf(), rf(), 1000000)])
.once();
image 2:
$('s')
.noise(1000 * 1000)
.slices2d(4, () => {
this.slices2d(16,()=>{this.sort().slices2d(Math.pow(ri(2, 20), 2), () => {
this.sort()
.rotate(choose([0, 90, 180, 360]))
})})
})
.saveimg()
.once();