cartoone222
ff54918502
[python] add bgcolor to turtule module ( #367 )
...
* add bgcolor to turtul module
* add bgcolor to toolbox and a minor fix
* ok is ok now i hope however
* Submodule Omega-Kawaii-Theme remove
2024-06-09 07:01:17 +00:00
Arthur Camouseigt
4b20c69174
[python/modturtle.cpp] Added support for float parameter in colormode()
...
The function can now accept the value 1.0 in addition to 1
Change-Id: I9a7021076844784ca997fc618253524089cbe855
(cherry picked from commit c69e1542ecc9a7e474a3f1e92cc97f644bf4b701)
2020-06-04 14:50:10 +02:00
Arthur
fe7c4b1a8a
[python/turtle] Added write method
...
Allows user to print strings with the turtle
Change-Id: I06a3832f6fa36d29506be10c48a1b2fb34cb69fb
2020-06-04 14:50:09 +02:00
Émilie Feral
273d10dc26
[python] Change names: ColorParse::ParseColor --> Color::Parse
2020-06-04 14:50:08 +02:00
Émilie Feral
ba15415847
[python] modturtle: avoid unexpected cast
2020-04-30 14:12:32 +02:00
Émilie Feral
686a1493e5
[python] Coding style
2020-04-30 14:12:32 +02:00
Émilie Feral
af0cdbcc1b
Coding style
2020-04-30 14:12:32 +02:00
Émilie Feral
8f5fa50f22
[python] Color: avoid magic number 255, clean code of ColorParser and
...
Turtle::colormode
2020-04-30 14:12:32 +02:00
Émilie Feral
c920df1f76
[python] Change enum class name: ColorModes --> ColorMode
2020-04-30 14:12:32 +02:00
Émilie Feral
3d1b3f9a0b
[python] Factorize implementation of pencode (Turtle module)
2020-04-30 14:12:32 +02:00
Joachim LF
e76abcf67e
[Python] universal colors
2020-04-30 14:12:32 +02:00
Léa Saviot
86bd4be03e
[python/port] Fix gc_collect_root on emscripten
...
Any data access should be aligned.
2020-02-12 15:13:22 +01:00
Léa Saviot
ac6ce97dea
[python/modturtle] Allowinterruption during reset
...
Scenario:
fro m turtle import *
while 1==1:
reset()
-> This script cannot be interrupted
2020-02-12 15:13:21 +01:00
Émilie Feral
37061b9cb5
[python] Fix gc_collect to be sure to get unaligned pointers
2020-02-12 15:13:16 +01:00
Émilie Feral
c0da810ea1
[python] Turtle module: fix modturtle_gc_collect from stack-buffer-overflow
2019-06-14 13:37:11 -04:00
Léa Saviot
4b306791c0
[python/turtle] Turtle::m_drawn is false if sandbox not displayed
...
This way, Turtle::draw() and erase() are more symetrical and no not
perform themselves if the turtle is already drawn / erased.
2018-12-18 12:05:46 +01:00
Léa Saviot
ad745f7114
[python/turtle] Add speed() methods without args
2018-12-17 15:40:34 +01:00
Léa Saviot
62cda01d2b
[python/turtle] color and pencolor can take various arguments
...
These two methods are equal.
2018-12-11 14:42:04 +01:00
Léa Saviot
7efb48ab6e
[python/turtle] Turtle::circle's angle argument is optional
2018-12-10 16:59:11 +01:00
Léa Saviot
c8a5972243
[python/turtle] Turtle::circle(radius, angle)
2018-12-07 10:51:14 +01:00
Léa Saviot
cc3beb6014
[python/turtle] Turtle::reset() method
2018-12-06 17:26:43 +01:00
Romain Goyet
5748521876
[python/turtle] Try to play well with uPy's GC
2018-11-16 18:33:41 +01:00
Romain Goyet
7fc34fe17f
[python/turtle] Use an init method to reset the turtle
2018-11-16 18:33:05 +01:00
Romain Goyet
a9091c933b
[python/turtle] Use a Turtle class
2018-11-16 15:31:31 +01:00
Romain Goyet
fe076d0578
[python/turtle] Use mp_float_t
2018-11-16 10:33:28 +01:00
Romain Goyet
22a39a2fd6
[python/turtle] Use a dedicated folder
2018-11-16 10:31:16 +01:00