pibo_graphics · 거북이 그림
Turtle package와 유사한 그래픽 위한 클래스 입니다.
TEST
기준: 240x320 (파이브레인)
Class:
PiboGraphics
-
class openpibo.pibo_graphics.PiboGraphics(view_instance, width=240, height=320, animation_delay=0.01, move_step_size=2, turn_step_size=5, icon_path=openpibo_models.filepath)[소스]
기반 클래스: object
-
reset(show_initial=True)[소스]
Clears screen and history, resets state.
-
clear()[소스]
Clears drawing area (history), redraws icon, shows.
-
bgcolor(b, g, r)[소스]
Sets background color and clears screen/history.
-
penup()[소스]
-
pendown()[소스]
-
pencolor(b, g, r)[소스]
-
pensize(width)[소스]
-
forward(distance)[소스]
Moves forward step-by-step, adding to history if pen down.
-
backward(distance)[소스]
-
left(angle)[소스]
Turns left step-by-step, updating icon display.
-
right(angle)[소스]
-
setheading(angle)[소스]
Sets absolute heading instantly, updates display.
-
goto(x, y)[소스]
Goes instantly, adds line to history if pen down.
-
circle(radius, extent=360)[소스]
Adds circle/arc to history if pen down.
-
dot(size=None, color_bgr=None)[소스]
Adds dot to history.