Robiłem AthensTutorial, rozumiem pierwszy krokW Atenach Z artykułu, z którego pochodzi płótno?
surface := AthensCairoSurface extent: self extent asIntegerPoint.
a następnie krok 2 jest
surface drawDuring: [:canvas |
"First, we clear the surface"
surface clear.
"we can use
surface clear: Color black.
as well. A #clear is equivalent to: (surface clear: Color transparent). "
"Let''s draw a simple green rectangle"
canvas setPaint: Color green.
canvas setShape: ([email protected] corner: [email protected]).
canvas draw.
]
Gdzie płótno pochodzi? gdzie jest zdefiniowane? Po prostu nie rozumiem tej części.
Bardzo dziękuję Damien, teraz ma to sens :) – Kilon