[ Media ] timer: [ Number ] after: [ Number ]
>> media := Media new.
>> i := 0.
media on: ['start'] do: {
Out write: ['start'], stop.
media timer: 1 after: 12.
}.
media on: ['step'] do: {
Out write: i, stop.
i add: 1.
}.
media on: ['timer:'] do: { :t
Out write: ['timer:'] + t, stop.
media end.
}.
media screen: ['canvas.png'].
Go to homepage
2024-9-28 11:16
- [ Image ] cut
- [ Image ] append: [ Text ]
- [ Media ] width: [ Number ] height: [ Number ]
- [ Media ] timer: [ Number ] after: [ Number ]
- [ Media ] screen: [ Text ]
- Point
- [ Point ] x?
- [ Point ] y?
- [ Point ] x: [ Number ] y: [ Number ]
- [ Line ] from: [ Point ] to: [ Point ]
- [ Font ] new
- [ Font ] style: [ Text ] direction: [ Number ]
- [ Color ] red: [Number] green: [Number] blue: [Number]
- Audio
- Network
- Image
- [ Image ] source: [ Text ]
- [ Image ] static: [ Boolean ]
- [ Image ] ghost: [ Boolean ]
- [ Image ] visible: [ Boolean ]
- [ Image ] fixate: [ Boolean ]
- [ Image ] controllable: [ Number ]
- [ Image ] x: [ Number ] y: [ Number ]
- [ Image ] to-x: [ Number ] y: [ Number ]
- [ Image ] bounce: [ Boolean ]
- [ Image ] wall: [ Boolean ]
- [ Image ] active: [ Boolean ]
- [ Image ] gravity: [ Number ]
- [ Image ] speed: [ Number ]
- [ Image ] friction: [ Number ]
- [ Image ] font: [ Font ]
- [ Image ] accelerate: [ Number ]
- [ Image ] jump-height: [ Number ]
- [ Image ] editable: [ Boolean ]
- [ Image ] autoplay: [ Number ].
- [ Image ] reel: [ Number ] rate: [Number].
- [ Image ] ink: [ Color ]
- [ Image ] highlight: [ Color ]
- [ Image ] align x: [ Number ] y: [ Number ]
- [ Image ] line-height: [ Number ]
- [ Image ] write: [ Text ]
- [ Image ] draw: [ Sequence ] color: [ Colour ]
- [ Image ] text
- [ Media ] clipboard
- [ Media ] clipboard: [ Text ]
- [ Media ] selected.
- [ Blob ] deref.
- [ Blob ] fill: [ Sequence ]
- [ Blob ] free
- [ Blob ] new: [ Number ]
- [ Blob ] utf8: [ Text ]
- [ Blob ] from: [ Number ] length: [ Number ]
- FFI
- [ Blob ] struct: [ Sequence ]
- [ Blob ] freestruct
- [ Media ] link: [ Package ]
- [ Package ] add: [ Object ]
- [ Media ] show: [ Text ]
- [ Media ] website: [ Text ]