v21’s avatarv21’s Twitter Archive—№ 62,011

    1. …in reply to @rubna_
      @rubna_ ah, yeah, it won't give you that too easily... or at least without discontinuities between sectors, and a deterministic rng
  1. …in reply to @v21
    @rubna_ here's a sensible writeup of the algorithm sighack.com/post/poisson-disk-sampling-bridsons-algorithm (with all the optimizations that break once you start getting weird with it)
    1. …in reply to @v21
      @rubna_ here's my code (in Typescript, so it won't be directly applicable) gist.github.com/v21/aa35d1404b3caf12826ea84b52071745
      1. …in reply to @v21
        @rubna_ when you generate a point you start from the previous point & then generate a point at random between r and r*2 away. then you keep it if it's not within r of any previously generated point. r varies according to a noise function fed with the current point.