私は AthensTutorial をやっていて、最初のステップを理解しました
surface := AthensCairoSurface extent: self extent asIntegerPoint.
そして、ステップ2は
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: (40@40 corner: 100@100).
canvas draw.
]
キャンバスはどこから来ますか? はどこで定義されていますか? その部分だけはわかりません。