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

Generative Trigonometric Art

{{$t('general.by')}}
This program works by drawing shapes that randomly change based off trigonometric functions, randomized variables and the user's mouse placement. Essentially, it starts by forming one point using a randomized angle and multiplying it by a sin function for your x coordinate, and a tangent function for your y coordinate. From there that value is multiplied by the placement of your mouse on the x-axis of your computer. This process is repeated as many times as the computer can for 149 milliseconds finally creating a cool shape.
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')}}