Skip to content

TheuTrich/Random-moving-pixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Random-moving-pixel

My first C++ program. It prints a pixel at a random position and random colour

There are 2 variants C++ and Python

The way it moves:

it start at x = 0 and y = 0

then it adds to x and y a random number integer from -1 to 1

to avoid errors it will detect when the x is smaller than 0 it will add width to x. Or if it is bigger than the (width - 1) it will subtract the width. And y is the same as x but replaces width with height

Python

In python version it a bit more complicated because i use multithread to make it a bit faster and able to run multiple at same time

Program Location

C++:randpxl\x64\Debug

Python:\

I made this before using TI-BASIC in TI-84 Plus CE and Python

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published