apysc documentation¶
Welcome to apysc documentation! apysc is a Python front-end library (currently developing and only works partially).
Project links¶
-
Please leave a ⭐️star⭐️ if you favor the apysc library or have high hopes for the library’s future!
Other languages documentations: | English | Japanese (日本語) |
Quick start guide¶
Container classes¶
The Stage
is the apysc overall drawing area container, and the Sprite
is the container class.
Exporting¶
The HTML and JavaScript exporting interfaces.
apysc basic data classes¶
Int and Number classes¶
String class¶
- String class
- String class comparison operations
- String class addition and multiplication operations
- String class split interface
- String class lstrip interface
- String class strip interface
- String class rstrip interface
- String class length property
- String class apply_max_num_of_decimal_places interface
- String class zfill method
- String class lower method
- String class upper method
- String class slice method
Boolean class and constants¶
Array class¶
- Array class
- Array class append and push interfaces
- Array class extend and concat interfaces
- Array class insert and insert_at interfaces
- Array class pop interface
- Array class remove and remove_at interfaces
- Array class sort interface
- Array class reverse interface
- Array class slice interface
- Array class length interface
- Array class join interface
- Array class index_of interface
- Array class clear interface
- Array class comparison interfaces
- Array class last_value property
Dictionary class¶
Color class and constants¶
DisplayObject and GraphicsBase classes¶
The DisplayObject
class is the base class for each display object. The GraphicsBase
class is the DisplayObject
subclass and the base class of each graphic class, such as the Rectangle
class.
- DisplayObject class
- DisplayObject and GraphicsBase classes base properties abstract
- DisplayObject x and y interfaces
- DisplayObject class parent interfaces
- DisplayObject class visible interface
- DisplayObject class get_css and set_css interfaces
- DisplayObject class mouse event binding interfaces
- GraphicsBase fill_color property
- GraphicsBase fill_alpha interface
- GraphicsBase line_color interface
- GraphicsBase line_alpha interface
- GraphicsBase line_thickness interface
- GraphicsBase line_dot_setting interface
- GraphicsBase line_dash_setting interface
- GraphicsBase line_round_dot_setting interface
- GraphicsBase line_dash_dot_setting interface
- GraphicsBase rotation_around_center interface
- GraphicsBase rotation_around_point interfaces
- GraphicsBase scale_x_from_center and scale_y_from_center interfaces
- GraphicsBase get_scale_from_point and set_scale_from_point interfaces
- GraphicsBase flip_x and flip_y interfaces
- GraphicsBase skew_x and skew_y interfaces
Each graphic class¶
Graphics class¶
The Graphics
class handles each vector graphics drawing.
- Draw interfaces abstract
- Graphics class
- Graphics begin_fill interface
- Graphics line_style interface
- Graphics draw_triangle interface
- Graphics draw_rect interface
- Graphics draw_round_rect interface
- Graphics draw_circle interface
- Graphics draw_ellipse interface
- Graphics move_to and line_to interfaces
- Graphics draw_line interface
- Graphics draw_dotted_line interface
- Graphics draw_dashed_line interface
- Graphics draw_round_dotted_line interface
- Graphics draw_dash_dotted_line interface
- Graphics draw_polygon interface
- Graphics draw_path interface
- Graphics clear interface
Text¶
SVG text¶
Mask¶
Common event interfaces¶
MouseEvent class and mouse event binding¶
Branch instruction¶
Loop¶
Timer and enter-frame¶
DateTime class¶
- DateTime class
- DateTime class year property
- DateTime class month property
- DateTime class day property
- DateTime class hour property
- DateTime class minute property
- DateTime class second property
- DateTime class millisecond property
- DateTime class weekday_js and weekday_py properties
- DateTime class now interface
- DateTime class set_month_end interface
TimeDelta class¶
Animation¶
- Animation interfaces abstract
- AnimationEvent class
- Animation interfaces duration setting
- Animation interfaces delay setting
- Each animation interface return value
- AnimationBase class start interface
- AnimationBase class animation_complete interface
- AnimationBase class interfaces method chaining
- AnimationBase class target property interface
- animation_pause and animation_play interfaces
- animation_reset interface
- animation_finish interface
- animation_reverse interface
- animation_time interface
- Easing enum
- Sequential animation setting
- animation_parallel interface
- animation_move interface
- animation_x interface
- animation_y interface
- animation_width and animation_height interfaces
- animation_fill_color interface
- animation_fill_alpha interface
- animation_line_color interface
- animation_line_alpha interface
- animation_line_thickness interface
- animation_radius interface
- animation_rotation_around_center interface
- animation_rotation_around_point interface
- animation_scale_x_from_center and animation_scale_y_from_center interfaces
- animation_scale_x_from_point and animation_scale_y_from_point interfaces
Mathematics¶
Other manipulation interfaces¶
Debugging¶
Testing¶
- JavaScript assertion interface basic behaviors
- assert_equal and assert_not_equal interfaces
- assert_true and assert_false interfaces
- assert_greater and assert_greater_equal interfaces
- assert_less and assert_less_equal interfaces
- assert_arrays_equal and assert_arrays_not_equal interfaces
- assert_dicts_equal and assert_dicts_not_equal interfaces
- assert_defined and assert_undefined interfaces