第 9 步:现在,我们的方块总是变红。让我们使用用户的输入。
我们可以使用我们的红色、绿色和蓝色值通过Set Color RGB形状更改为自定义颜色。

  • 在,拖入Set Color RGB 。
  • 将.set_color()前面的名称从sprite更改为color_circle 。
  • 在.set_color()命令的括号内,将0 , 255 , 0替换为r , g , b 。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)