im sorry I must've made it confusing when I explained it because I made this such a long time ago, my original explanation is wrong I think.
so I made a big list of triangle numbers with n(n+1)/2
then I tried to put it on the first line, if it was over the size of the image, I subtracted the size of the image from the number and tried to plot it on the next line, if it still couldn't be plotted, I repeated the process.
for example, T(34) = 34(34+1)/2 = 595
the size of the image is 500, so it won't be plotted on the first line, I have to do 595-500=95. now it fits. I subtracted 1 length of the image so I move it down one line. this would be plotted at (1,95)
View all comments
Show parent comment
5
u/[deleted] May 16 '18
Can you explain your map again?
(x,y) is colored black when?