With javascript and canvas you can fill an array with color for each pixel and then put it on the screen. How can i do this in python using pygame? A very small example is enough.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is a quick example I whipped up:
I filled an array with red blue and green, then randomly choose a colour to draw.
Hope it helps