@@ -20,7 +20,7 @@ or as [JavaDoc](https://krassnig.github.io/CodeDrawJavaDoc/).
2020 * [ Modifying the way things are drawn] ( #modifying-the-way-things-are-drawn )
2121 * [ Drawing text] ( #drawing-text )
2222 * [ Canvas and window] ( #canvas-and-window )
23- * [ Debugging CodeDraw and ImmediateDraw ] ( #debugging-codedraw-and-immediatedraw )
23+ * [ Debugging CodeDraw and drawing instantly ] ( #debugging-codedraw-and-drawing-instantly )
2424 * [ Points, lines and curves] ( #points-lines-and-curves )
2525 * [ Outline and filled shapes] ( #outline-and-filled-shapes )
2626 * [ Images in CodeDraw] ( #images-in-codedraw )
@@ -226,7 +226,7 @@ Methods about the CodeDraw window:
226226 - getCanvasPositionX/setCanvasPositionX
227227 - getCanvasPositionY/getCanvasPositionY
228228
229- ## Debugging CodeDraw and ImmediateDraw
229+ ## Debugging CodeDraw and drawing instantly
230230
231231When debugging CodeDraw in Intellij, Intellij stops the entire Program including the CodeDraw window and your Code.
232232To make Intellij only stop your Code and not make the CodeDraw window freeze when debugging follow these 4 steps:
@@ -238,7 +238,7 @@ To make Intellij only stop your Code and not make the CodeDraw window freeze whe
238238
239239![ 06 Debugging CodeDraw and ImmediateDraw] ( https://user-images.githubusercontent.com/24553082/156898569-6dbc7bb0-b5f2-43d7-a423-078d82d37767.png )
240240
241- When ImmediateDraw is enabled CodeDraw will immediately draw all shapes to the canvas.
241+ When InstantDraw is enabled CodeDraw will instantly draw all shapes to the canvas.
242242This can be used to better understand what is happening in your application
243243but also slows down drawing object because CodeDraw has to render each time.
244244
@@ -248,16 +248,16 @@ Additionally, you can setAlwaysOnTop to true that CodeDraw doesn't disappear beh
248248import codedraw.* ;
249249
250250public class Main {
251- public static void main (String [] args ) {
252- CodeDraw cd = new CodeDraw ();
253- cd. enableImmediateDraw( );
254- cd. setAlwaysOnTop(true );
255-
256- cd. drawCircle(300 , 300 , 100 );
257-
258- // The circle is displayed without calling
259- // cd.show();
260- }
251+ public static void main (String [] args ) {
252+ CodeDraw cd = new CodeDraw ();
253+ cd. setInstantDraw( true );
254+ cd. setAlwaysOnTop(true );
255+
256+ cd. drawCircle(300 , 300 , 100 );
257+
258+ // The circle is displayed without calling
259+ // cd.show();
260+ }
261261}
262262```
263263
0 commit comments