AoPS avatar drawer
by sonone, Aug 5, 2022, 9:14 PM
AoPS avatar drawer
I made a program that draws an AoPS avatar, but it can do more! If desired, one can create custom avatars of most any size (I doubt some of the larger sizes render well at all on a 126x62 resolution display). It only supports plane partitions (i.e. a normal avatars), otherwise it will look like scribble scrabble.
The height matrix give information on high each "pillar" is. The AoPS logo has a height matrix of
If you so desire to change the size, say to a 5x5x5, go to the beginning of the code and change S to 5 (default is 3). Then edit the assignment for MAT A to a 5x5 height matrix. Then run the program and it should render. If it looks strange, check the height matrix to make sure that the values are correct.
The program is called AOPSAVTR and takes up 492 bytes of memory. The .g1m file is attached below. I had to attach it as a .zip file since AoPS doesn't recognize.g1m files.
I made a program that draws an AoPS avatar, but it can do more! If desired, one can create custom avatars of most any size (I doubt some of the larger sizes render well at all on a 126x62 resolution display). It only supports plane partitions (i.e. a normal avatars), otherwise it will look like scribble scrabble.
The height matrix give information on high each "pillar" is. The AoPS logo has a height matrix of
[[3,3,3][3,2,1][3,1,1]]
The first row is the back right, the columns counting up to the right.If you so desire to change the size, say to a 5x5x5, go to the beginning of the code and change S to 5 (default is 3). Then edit the assignment for MAT A to a 5x5 height matrix. Then run the program and it should render. If it looks strange, check the height matrix to make sure that the values are correct.
The program is called AOPSAVTR and takes up 492 bytes of memory. The .g1m file is attached below. I had to attach it as a .zip file since AoPS doesn't recognize.g1m files.
Attachments:
This post has been edited 1 time. Last edited by sonone, Aug 5, 2022, 9:26 PM