Scratch for Java

Timer::interval()

Alternates: true for a number of seconds, then false for as long, and so on.

Syntax

Java

.interval(seconds)
.interval(on, off)

Parameters

Name Data Type Description
seconds double how long each phase lasts
on double how long it is true
off double how long it is false

Return

boolean

interval()

Create Shareable URL

Select Sections