ScratchData LogoScratchData
Back to iaobardar's profile

Voronoi Diagram Test

IAiaobardar•Created October 24, 2019
Voronoi Diagram Test
24
15
144 views
View on Scratch

Instructions

This is a quick implementation of a voronoi diagram. Watch as it draws a voronoi diagram. Change the quality slider to change the quality and speed of the drawing process. (you may have to click the green flag again.) Explanation: it places a bunch of randomly spaced points (black dots), then iterates through the pixels on the screen and finds the nearest point, coloring it determined on which point is nearest and how close it is. See here for more info: https://en.wikipedia.org/wiki/Voronoi_diagram

Description

Mar 26 2020: Added Chebyshev Distance Mar 20, 2020: Added option for Manhattan Distance Mar 18, 2020: Now with colors. ;)

Project Details

Project ID339189293
CreatedOctober 24, 2019
Last ModifiedMarch 26, 2020
SharedOctober 24, 2019
Visibilityvisible
CommentsAllowed