r1 - 23 Dec 2007 - 18:33:39 - WhaleForestYou are here: TWiki >  Processing Web > ProcessingHandbookChinese > Shape1CoordinatesPrimitivesDrawingOrder

Drawing order 图形呈现顺序

(page31)

使用代码绘制多个图形时也需要考虑排列顺序,先绘制出的图形会被后绘制出的图形覆盖。例如,在程序的第一行使用代码绘制出的正方形,会被第二行代码绘制出的圆形覆盖,改变两行代码顺序圆形就会被正方形覆盖。

rect(15, 15, 50, 50);     // 下
  ellipse(60, 60, 55, 55);  //上
  
2-23

  ellipse(60, 60, 55, 55);  // 下 
  rect(15, 15, 50, 50);     //上
  
2-24

-- WhaleForest - 23 Dec 2007

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback