tôi đang làm AthensTutorial, tôi hiểu được những bước đầu tiênTrong AthensTự tưởng mà vải đến từ đâu?
surface := AthensCairoSurface extent: self extent asIntegerPoint.
và sau đó bước 2 là
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.
]
đâu vải đến từ đâu? nơi được xác định? Tôi chỉ không hiểu phần đó.
Cảm ơn bạn rất nhiều Damien giờ đây đã có ý nghĩa :) – Kilon