Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
CS111 Lab: Java graphics: fillArc() examples fillArc() examples fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) Fills a circular or elliptical arc covering the specified rectangle. fillArc() always draws an arc inside a circle or oval, which is, in turn, inside a square or rectangle. The bounding box (shown in black) and bounding oval (shown in red) are not displayed, but are used as guidelines for the arc. Some things to note about fillArc(): 0 degrees is at the rightmost point of the oval/circle A positive arcAngle means the arc will extend counterclockwise, otherwise, the arc will extend clockwise from the startAngle the arc automatically fills the shape that is determined by the width and height the color of the Graphics object was set to Color.blue before these drawings were made the bounding box (black) and circle (red) drawRect(50,5,100,100); fillArc(50,5,100,100,75,40); fillArc(50,5,100,100,75,-40); fillArc(50,5,100,100,225,90); the bounding rect (black) and oval (red) drawRect(50,5,100,33); fillArc(50,5,100,33,75,40); fillArc(50,5,100,33,75,-40); fillArc(50,5,33,100,225,90);