donkirkby / live-py-plugin

Live coding in Python with PyCharm, Emacs, Sublime Text, or even a browser
https://donkirkby.github.io/live-py-plugin
MIT License
290 stars 57 forks source link

Turtle colormode bug #429

Closed BTWS2 closed 2 years ago

BTWS2 commented 2 years ago

What I did

I tested the colormode online (https://donkirkby.github.io/live-py-plugin/demo/), but the color didn't change.

import turtle as t

t.getscreen().colormode(255)
t.pensize(5)
t.color(0, 127, 255)
t.fd(200)

t.mainloop()

What happened

The line is still black.

image

What I wanted to happen

The line should be blue.

import turtle as t

# t.getscreen().colormode(255)
t.pensize(5)
t.color(0, 127/255, 255/255) # colormode(255) simulated
t.fd(200)

t.mainloop()

image

My environment

donkirkby commented 2 years ago

This was fixed in #352, but I hadn't deployed version 4.8.0 yet. It's now deployed, so you should see the fix in the browser.