मैं 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: ([email protected] corner: [email protected]).
canvas draw.
]
कहाँ कैनवास से आता है? कहां परिभाषित किया गया है? मैं बस उस हिस्से को समझ नहीं पा रहा हूं।
आपको बहुत धन्यवाद डेमियन अब समझ में आता है :) – Kilon