mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python/turtle] Tune values of the turtle speed
This commit is contained in:
@@ -293,7 +293,7 @@ bool Turtle::draw(bool force) {
|
||||
}
|
||||
|
||||
if (m_mileage > 1000) {
|
||||
if (micropython_port_interruptible_msleep(1 + (m_speed == 0 ? 0 : k_maxSpeed * (k_maxSpeed - m_speed)))) {
|
||||
if (micropython_port_interruptible_msleep(1 + (m_speed == 0 ? 0 : 3 * (k_maxSpeed - m_speed)))) {
|
||||
return true;
|
||||
}
|
||||
m_mileage -= 1000;
|
||||
|
||||
@@ -79,7 +79,7 @@ private:
|
||||
static constexpr int k_invertedYAxisCoefficient = -1;
|
||||
static constexpr KDCoordinate k_xOffset = Ion::Display::Width / 2;
|
||||
static constexpr KDCoordinate k_yOffset = (Ion::Display::Height - Metric::TitleBarHeight) / 2;
|
||||
static constexpr uint8_t k_defaultSpeed = 3;
|
||||
static constexpr uint8_t k_defaultSpeed = 8;
|
||||
static constexpr uint8_t k_maxSpeed = 10;
|
||||
static constexpr KDColor k_defaultColor = KDColorBlack;
|
||||
static constexpr uint8_t k_defaultPenSize = 1;
|
||||
|
||||
Reference in New Issue
Block a user