有没有办法在Python中将rgb值与turtle的dot()函数一起使用?

发布于 2025-01-14 18:29:13 字数 65 浏览 0 评论 0原文

我已经尝试过 colormode(255) 但这似乎不起作用。如果不可能,是否有解决方法?

I have tried colormode(255) but that doesn't seem to be working. If it is not possible is there a work around for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

已下线请稍等 2025-01-21 18:29:13
import turtle as t

t.colormode(255)

tim = t.Turtle()

tim.hide()

tim.dot(30, (0,0,255))
import turtle as t

t.colormode(255)

tim = t.Turtle()

tim.hide()

tim.dot(30, (0,0,255))
静水深流 2025-01-21 18:29:13
import turtle as t 
from turtle import Turtle, Screen
t.colormode(255)
timmy = Turtle()
t.dot(20,(254,235,105))
screen = Screen()
screen.exitonclick
import turtle as t 
from turtle import Turtle, Screen
t.colormode(255)
timmy = Turtle()
t.dot(20,(254,235,105))
screen = Screen()
screen.exitonclick
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文