Module: Cute
- Defined in:
- docstub/text.rb,
docstub/color.rb,
docstub/circle.rb,
docstub/sprite.rb,
mrblib/v2.rb,
mrblib/sprite.rb,
mrblib/version.rb,
mrblib/transform.rb
Defined Under Namespace
Classes: Circle, Color, Pixel, Sprite, Transform, V2
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
- .cf_draw_circle(circle, thickness) ⇒ nil
- .cf_draw_circle2(position, radius, thickness) ⇒ nil
- .cf_draw_circle_fill(circle) ⇒ nil
- .cf_draw_circle_fill2(position, radius) ⇒ nil
- .cf_draw_text(text, position, num_chars_to_draw = -1)) ⇒ nil
-
.cf_make_font(path, font_name) ⇒ Result
A result indicating success or failure.
- .cf_pop_font ⇒ nil
- .cf_pop_font_size ⇒ nil
- .cf_push_font(font_name) ⇒ nil
- .cf_push_font_size(size) ⇒ nil
-
.cf_text_height(text, num_chars_to_draw = -1)) ⇒ Float
The height of the text in pixels.
-
.cf_text_size(text, num_chars_to_draw = -1)) ⇒ V2
The size of the text in pixels.
-
.cf_text_width(text, num_chars_to_draw = -1)) ⇒ Float
The width of the text in pixels.
-
.Circle(position, radius) ⇒ Circle
A new Circle instance.
-
.color_black ⇒ Color
A new Color instance.
-
.color_blue ⇒ Color
A new Color instance.
-
.color_clear ⇒ Color
A new Color instance.
-
.color_cyan ⇒ Color
A new Color instance.
-
.color_green ⇒ Color
A new Color instance.
-
.color_grey ⇒ Color
A new Color instance.
-
.color_hex(hex) ⇒ Color
A new Color instance.
-
.color_magenta ⇒ Color
A new Color instance.
-
.color_red ⇒ Color
A new Color instance.
-
.color_white ⇒ Color
A new Color instance.
-
.color_yellow ⇒ Color
A new Color instance.
-
.pixel_hex(hex) ⇒ Pixel
A new Pixel instance.
-
.pixel_rgb(r, g, b) ⇒ Pixel
A new Pixel instance.
-
.pixel_rgba(r, g, b, a) ⇒ Pixel
A new Pixel instance.
-
.rgb(r, g, b) ⇒ Color
A new Color instance.
-
.rgb_f(r, g, b) ⇒ Color
A new Color instance.
-
.rgba(r, g, b, a) ⇒ Color
A new Color instance.
-
.rgba_f(r, g, b, a) ⇒ Color
A new Color instance.
Instance Method Summary collapse
- #cf_draw_circle ⇒ nil
- #cf_draw_circle2 ⇒ nil
- #cf_draw_circle_fill ⇒ nil
- #cf_draw_circle_fill2 ⇒ nil
- #cf_draw_text ⇒ nil
-
#cf_make_font ⇒ Result
A result indicating success or failure.
- #cf_pop_font ⇒ nil
- #cf_pop_font_size ⇒ nil
- #cf_push_font ⇒ nil
- #cf_push_font_size ⇒ nil
-
#cf_text_height ⇒ Float
The height of the text in pixels.
-
#cf_text_size ⇒ V2
The size of the text in pixels.
-
#cf_text_width ⇒ Float
The width of the text in pixels.
-
#Circle ⇒ Circle
A new Circle instance.
-
#color_black ⇒ Color
A new Color instance.
-
#color_blue ⇒ Color
A new Color instance.
-
#color_clear ⇒ Color
A new Color instance.
-
#color_cyan ⇒ Color
A new Color instance.
-
#color_green ⇒ Color
A new Color instance.
-
#color_grey ⇒ Color
A new Color instance.
-
#color_hex ⇒ Color
A new Color instance.
-
#color_magenta ⇒ Color
A new Color instance.
-
#color_red ⇒ Color
A new Color instance.
-
#color_white ⇒ Color
A new Color instance.
-
#color_yellow ⇒ Color
A new Color instance.
-
#pixel_hex ⇒ Pixel
A new Pixel instance.
-
#pixel_rgb ⇒ Pixel
A new Pixel instance.
-
#pixel_rgba ⇒ Pixel
A new Pixel instance.
-
#rgb ⇒ Color
A new Color instance.
-
#rgb_f ⇒ Color
A new Color instance.
-
#rgba ⇒ Color
A new Color instance.
-
#rgba_f ⇒ Color
A new Color instance.
Class Method Details
.cf_draw_circle(circle, thickness) ⇒ nil
65 66 |
# File 'docstub/circle.rb', line 65 def self.cf_draw_circle(circle, thickness) end |
.cf_draw_circle2(position, radius, thickness) ⇒ nil
74 75 |
# File 'docstub/circle.rb', line 74 def self.cf_draw_circle2(position, radius, thickness) end |
.cf_draw_circle_fill(circle) ⇒ nil
81 82 |
# File 'docstub/circle.rb', line 81 def self.cf_draw_circle_fill(circle) end |
.cf_draw_circle_fill2(position, radius) ⇒ nil
89 90 |
# File 'docstub/circle.rb', line 89 def self.cf_draw_circle_fill2(position, radius) end |
.cf_draw_text(text, position, num_chars_to_draw = -1)) ⇒ nil
42 43 |
# File 'docstub/text.rb', line 42 def self.cf_draw_text(text, position, num_chars_to_draw = -1) end |
.cf_make_font(path, font_name) ⇒ Result
Returns A result indicating success or failure.
7 8 |
# File 'docstub/text.rb', line 7 def self.cf_make_font(path, font_name) end |
.cf_pop_font ⇒ nil
20 21 |
# File 'docstub/text.rb', line 20 def self.cf_pop_font end |
.cf_pop_font_size ⇒ nil
33 34 |
# File 'docstub/text.rb', line 33 def self.cf_pop_font_size end |
.cf_push_font(font_name) ⇒ nil
14 15 |
# File 'docstub/text.rb', line 14 def self.cf_push_font(font_name) end |
.cf_push_font_size(size) ⇒ nil
27 28 |
# File 'docstub/text.rb', line 27 def self.cf_push_font_size(size) end |
.cf_text_height(text, num_chars_to_draw = -1)) ⇒ Float
Returns The height of the text in pixels.
58 59 |
# File 'docstub/text.rb', line 58 def self.cf_text_height(text, num_chars_to_draw = -1) end |
.cf_text_size(text, num_chars_to_draw = -1)) ⇒ V2
Returns The size of the text in pixels.
66 67 |
# File 'docstub/text.rb', line 66 def self.cf_text_size(text, num_chars_to_draw = -1) end |
.cf_text_width(text, num_chars_to_draw = -1)) ⇒ Float
Returns The width of the text in pixels.
50 51 |
# File 'docstub/text.rb', line 50 def self.cf_text_width(text, num_chars_to_draw = -1) end |
.Circle(position, radius) ⇒ Circle
Returns A new Circle instance.
57 58 |
# File 'docstub/circle.rb', line 57 def self.Circle(position, radius) end |
.color_black ⇒ Color
Returns A new Color instance.
245 246 |
# File 'docstub/color.rb', line 245 def self.color_black end |
.color_blue ⇒ Color
Returns A new Color instance.
269 270 |
# File 'docstub/color.rb', line 269 def self.color_blue end |
.color_clear ⇒ Color
Returns A new Color instance.
239 240 |
# File 'docstub/color.rb', line 239 def self.color_clear end |
.color_cyan ⇒ Color
Returns A new Color instance.
281 282 |
# File 'docstub/color.rb', line 281 def self.color_cyan end |
.color_green ⇒ Color
Returns A new Color instance.
263 264 |
# File 'docstub/color.rb', line 263 def self.color_green end |
.color_grey ⇒ Color
Returns A new Color instance.
293 294 |
# File 'docstub/color.rb', line 293 def self.color_grey end |
.color_hex(hex) ⇒ Color
Returns A new Color instance.
233 234 |
# File 'docstub/color.rb', line 233 def self.color_hex(hex) end |
.color_magenta ⇒ Color
Returns A new Color instance.
287 288 |
# File 'docstub/color.rb', line 287 def self.color_magenta end |
.color_red ⇒ Color
Returns A new Color instance.
257 258 |
# File 'docstub/color.rb', line 257 def self.color_red end |
.color_white ⇒ Color
Returns A new Color instance.
251 252 |
# File 'docstub/color.rb', line 251 def self.color_white end |
.color_yellow ⇒ Color
Returns A new Color instance.
275 276 |
# File 'docstub/color.rb', line 275 def self.color_yellow end |
.pixel_hex(hex) ⇒ Pixel
Returns A new Pixel instance.
319 320 |
# File 'docstub/color.rb', line 319 def self.pixel_hex(hex) end |
.pixel_rgb(r, g, b) ⇒ Pixel
Returns A new Pixel instance.
302 303 |
# File 'docstub/color.rb', line 302 def self.pixel_rgb(r, g, b) end |
.pixel_rgba(r, g, b, a) ⇒ Pixel
Returns A new Pixel instance.
312 313 |
# File 'docstub/color.rb', line 312 def self.pixel_rgba(r, g, b, a) end |
.rgb(r, g, b) ⇒ Color
Returns A new Color instance.
216 217 |
# File 'docstub/color.rb', line 216 def self.rgb(r, g, b) end |
.rgb_f(r, g, b) ⇒ Color
Returns A new Color instance.
197 198 |
# File 'docstub/color.rb', line 197 def self.rgb_f(r, g, b) end |
.rgba(r, g, b, a) ⇒ Color
Returns A new Color instance.
226 227 |
# File 'docstub/color.rb', line 226 def self.rgba(r, g, b, a) end |
.rgba_f(r, g, b, a) ⇒ Color
Returns A new Color instance.
207 208 |
# File 'docstub/color.rb', line 207 def self.rgba_f(r, g, b, a) end |
Instance Method Details
#cf_draw_circle ⇒ nil
65 66 |
# File 'docstub/circle.rb', line 65 def self.cf_draw_circle(circle, thickness) end |
#cf_draw_circle2 ⇒ nil
74 75 |
# File 'docstub/circle.rb', line 74 def self.cf_draw_circle2(position, radius, thickness) end |
#cf_draw_circle_fill ⇒ nil
81 82 |
# File 'docstub/circle.rb', line 81 def self.cf_draw_circle_fill(circle) end |
#cf_draw_circle_fill2 ⇒ nil
89 90 |
# File 'docstub/circle.rb', line 89 def self.cf_draw_circle_fill2(position, radius) end |
#cf_draw_text ⇒ nil
42 43 |
# File 'docstub/text.rb', line 42 def self.cf_draw_text(text, position, num_chars_to_draw = -1) end |
#cf_make_font ⇒ Result
Returns A result indicating success or failure.
7 8 |
# File 'docstub/text.rb', line 7 def self.cf_make_font(path, font_name) end |
#cf_pop_font ⇒ nil
20 21 |
# File 'docstub/text.rb', line 20 def self.cf_pop_font end |
#cf_pop_font_size ⇒ nil
33 34 |
# File 'docstub/text.rb', line 33 def self.cf_pop_font_size end |
#cf_push_font ⇒ nil
14 15 |
# File 'docstub/text.rb', line 14 def self.cf_push_font(font_name) end |
#cf_push_font_size ⇒ nil
27 28 |
# File 'docstub/text.rb', line 27 def self.cf_push_font_size(size) end |
#cf_text_height ⇒ Float
Returns The height of the text in pixels.
58 59 |
# File 'docstub/text.rb', line 58 def self.cf_text_height(text, num_chars_to_draw = -1) end |
#cf_text_size ⇒ V2
Returns The size of the text in pixels.
66 67 |
# File 'docstub/text.rb', line 66 def self.cf_text_size(text, num_chars_to_draw = -1) end |
#cf_text_width ⇒ Float
Returns The width of the text in pixels.
50 51 |
# File 'docstub/text.rb', line 50 def self.cf_text_width(text, num_chars_to_draw = -1) end |
#Circle ⇒ Circle
Returns A new Circle instance.
57 58 |
# File 'docstub/circle.rb', line 57 def self.Circle(position, radius) end |
#color_black ⇒ Color
Returns A new Color instance.
245 246 |
# File 'docstub/color.rb', line 245 def self.color_black end |
#color_blue ⇒ Color
Returns A new Color instance.
269 270 |
# File 'docstub/color.rb', line 269 def self.color_blue end |
#color_clear ⇒ Color
Returns A new Color instance.
239 240 |
# File 'docstub/color.rb', line 239 def self.color_clear end |
#color_cyan ⇒ Color
Returns A new Color instance.
281 282 |
# File 'docstub/color.rb', line 281 def self.color_cyan end |
#color_green ⇒ Color
Returns A new Color instance.
263 264 |
# File 'docstub/color.rb', line 263 def self.color_green end |
#color_grey ⇒ Color
Returns A new Color instance.
293 294 |
# File 'docstub/color.rb', line 293 def self.color_grey end |
#color_hex ⇒ Color
Returns A new Color instance.
233 234 |
# File 'docstub/color.rb', line 233 def self.color_hex(hex) end |
#color_magenta ⇒ Color
Returns A new Color instance.
287 288 |
# File 'docstub/color.rb', line 287 def self.color_magenta end |
#color_red ⇒ Color
Returns A new Color instance.
257 258 |
# File 'docstub/color.rb', line 257 def self.color_red end |
#color_white ⇒ Color
Returns A new Color instance.
251 252 |
# File 'docstub/color.rb', line 251 def self.color_white end |
#color_yellow ⇒ Color
Returns A new Color instance.
275 276 |
# File 'docstub/color.rb', line 275 def self.color_yellow end |
#pixel_hex ⇒ Pixel
Returns A new Pixel instance.
319 320 |
# File 'docstub/color.rb', line 319 def self.pixel_hex(hex) end |
#pixel_rgb ⇒ Pixel
Returns A new Pixel instance.
302 303 |
# File 'docstub/color.rb', line 302 def self.pixel_rgb(r, g, b) end |
#pixel_rgba ⇒ Pixel
Returns A new Pixel instance.
312 313 |
# File 'docstub/color.rb', line 312 def self.pixel_rgba(r, g, b, a) end |
#rgb ⇒ Color
Returns A new Color instance.
216 217 |
# File 'docstub/color.rb', line 216 def self.rgb(r, g, b) end |
#rgb_f ⇒ Color
Returns A new Color instance.
197 198 |
# File 'docstub/color.rb', line 197 def self.rgb_f(r, g, b) end |
#rgba ⇒ Color
Returns A new Color instance.
226 227 |
# File 'docstub/color.rb', line 226 def self.rgba(r, g, b, a) end |
#rgba_f ⇒ Color
Returns A new Color instance.
207 208 |
# File 'docstub/color.rb', line 207 def self.rgba_f(r, g, b, a) end |