Shape

Type     [gd]

(abstract) class

Inheritance

Shape ➝ Display

Overview

  This is a base (abstract) class of all shape-related classes such as Rect, Circle, Polygon, Star and Heart, etc. Shape class inherits Display class, thus, all the methods in Display class can be used.

See also

Display


public methods


method

description

return value

obj:fill(color)

fill inner area using Color object

self

obj:setStrokeWidth(num)

set stroke width as num

self

obj:setStrokeColor(color)

set stroke color using Color object

self

obj:empty()

fill inner area by transparent color

self


댓글 없음:

댓글 쓰기