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

Class_dots

{{$t('general.by')}}
Class_Dots In the lecture we learn how to make class function. Classes is very popular and useful to use, because they allow you to organise your info easily when they go larger and you can use the same objects over again. I wanted to create little ellipses which look like dots. To create one dot I took a Dot Class and created my dot using new Dot(). And for the second dot, I took the same Dot Class and created a new instance. Each created object has their own properties, such as color and speed (it can stop, start or go faster or even in the opposite side), but it does just one function
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')}}