Press escape to exit fullscreen

{{sketch.instructions}}

CC {{sketch.licenseObject.short}}

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Capture Screenshot

Particles on a Sphere

{{$t('general.by')}}
A black sphere with particles around it. Click and drag to zoom in/out and invert. Mad credit is due to the creator of "Black Hole", one of the most impressive shows of processing I've seen. I don't think he released any code, but he gave out the equation: (cos(θ)sqrt(1-u²), sin(θ)sqrt(1-u²), u) where 0≤θ≤2π and -1≤u≤1. I sat down with it for 30 min and made this. In true processing spirit I'm posting the code while its still small. It might make a good base for something. Black Hole can be found at: http://blog.arsthanea.com/2009/01/05/black-hole/
We recovered an unsaved version of this sketch. Please review your changes below.

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}
    {{$t('sketch.mode-pjs')}} {{$t('general.learnMore')}}
    Select mode or a template
    {{liveCodeLink}}
    • {{l.url.substr(l.url.lastIndexOf('/') + 1)}}
    {{$t('sketch.layoutDescription')}}

    {{k.category}}
    {{k.label}}
    {{k.description}}

    {{$t('sketch.seeMoreShortcuts')}}

    Versions are only kept for 7 days.
    Join Plus+ to keep versions indefinitely!

    {{$t('general.joinPlus')}}


    {{$t('sketch.versionsSummarized')}}