Explore
Courses
Batches
Sketches
Statistics
Code a Pookkalam
Jobs
Devsprint
People
Course Creation
Create a Course
Guidelines
Resources
Support
Blogs
My Profile
About Us
Login
Sketches
0
Kuri(an)Kalam
By
Rohit T P
Run
import urllib.request with urllib.request.urlopen("https://raw.githubusercontent.com/rohittp0/S2-CP-Lab/main/code.py") as f: k = f.read().decode('utf-8') exec(k) size = len(pixels) ratio = int(300/size) def showPixel(x,y,clr): return rectangle(x=x,y=y,h=ratio,w=ratio,fill=clr,stroke_width=0) rects = [] for i in range(size): for j in range(size): rects.append(showPixel((i*ratio)-150,150-(j*ratio),pixels[i][j])) show(combine(rects) | rotate(-90))
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login