Last active
September 10, 2023 11:15
-
-
Save narukeh/d0aaab432fb25545c12c959a8f541640 to your computer and use it in GitHub Desktop.
ddd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import * | |
from turtle import * | |
from kandinsky import * | |
def asdf(a): | |
reset() | |
col=color(0,0,255) | |
for y in range(100): | |
for x in range(100): | |
set_pixel(x,y,col) | |
col=color(0,255,0) | |
for y in range(100): | |
for x in range(100): | |
set_pixel(x+100,y,col) | |
col=color(255,0,0) | |
for y in range(100): | |
for x in range(100): | |
set_pixel(x,y+100,col) | |
col=color(0,255,255) | |
for y in range(100): | |
for x in range(100): | |
set_pixel(x+100,y+100,col) | |
col=color(255,0,255) | |
for y in range(100): | |
for x in range(100): | |
set_pixel(x+200,y+100,col) | |
col=color(255,255,0) | |
for y in range(100): | |
for x in range(100): | |
set_pixel(x+200,y,col) | |
col=color(255,127,0) | |
for y in range(22): | |
for x in range(300): | |
set_pixel(x,y+200,col) | |
col=color(0,0,0) | |
for y in range(200): | |
for x in range(20): | |
set_pixel(x+300,y,col) | |
col=color(255,0,0) | |
for y in range(22): | |
for x in range(20): | |
set_pixel(x+300,y+200,col) | |
reset() | |
hideturtle() | |
speed(1) | |
penup() | |
goto(-120,110) | |
pendown() | |
for i in range(a): | |
forward(a) | |
right(a+i) | |
a=a-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment