First page Back Continue Last page Overview Graphics
圖形與進階繪圖
- PImage 物件用來處理圖形
- loadImage()載入圖形
- image(m,x,y),image(m,x,y,w,h)畫出圖形
- 用shape來繪向量圖
- loadShape()載入圖形
- shape(s,x,y),image(s,x,y,w,h)畫出圖形
- createShape()來自己繪製向量圖形
- Shape模式:ELLIPSE, RECT, ARC, TRIANGLE, SPHERE, BOX, QUAD, LINE