ScratchData LogoScratchData
Back to gtoal's profile

Vornoi + Edge detection = Paint by Numbers generator

GTgtoal•Created September 12, 2015
Vornoi + Edge detection = Paint by Numbers generator
20
12
447 views
View on Scratch

Instructions

This is more interesting than it looks ... I use the 'shrinking circle' Voronoi generation technique, but, although it does draw to the screen as a diagnostic tool, it is primarily writing the circles to an internal buffer, and once the voronoi is generated, it runs a convolution kernel on it to determine the edges of the Voronoi polygons. And since some polygons abut with others of the same color, it merges areas of the same color into larger non-convex polygons... in effect it generates the shapes that you would color in if you were actually generating a Paint by Numbers painting (rather than something that looks like the final result).

Description

Based on the Voronoi code plus my Bresenham's Circle drawing code from graphics101 studio. VERY SLOW. USE TURBO!

Project Details

Project ID76427938
CreatedSeptember 12, 2015
Last ModifiedSeptember 18, 2015
SharedSeptember 12, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root