+ 1
CHALANGE::Code that output a circle to an X Y grid in bianary.
input >> circle radius; output << binary for an x and y axis X Y 0 1 0 1 1 1 0 1 1 1 1 1 1 0 1 1 1 0 1 0 ect. This is not for homework or an assignment of any sort as are many challenges. Only to feed some new ideas to my personal hobby of machine animation. Any language welcome tho c++ would be preferred. Any questions? Just ask.
3 ответов
+ 2
This is my attempt.
https://code.sololearn.com/c3oO3fNLPLLA/#py
Please let me know if this was what you meant ?
can try with input radius of 1 and 4 and ....... personally have tried up to 50
0
specify
input and output..clearly if its possible
0
Input the circle radius.
Output binary.
On an grid of X and Y the 1 represents the movement in X or Y direction.
The output will look similar to the output in the description.
Someone good at web dev. could write a code to print out the results of the formula used to output the binary to see if it would indeed output a circle and if so how accurately.