How to make the supercon badge display your name.
Not a member? You should Sign up.
Already have an account? Log in.
To make the experience fit your profile, pick a username and tell us what interests you.
C Source File - 2.17 kB - 11/12/2017 at 00:49
C Source File - 2.21 kB - 11/11/2017 at 23:50
C Source File - 1.94 kB - 11/11/2017 at 23:17
h - 1002.00 bytes - 11/11/2017 at 22:20
Looks exactly the same. Code different.
At the top:
#define rainbow_numberofcolors 7 const unsigned short rainbowcols[rainbow_numberofcolors] = { rgbto16(255,0,0), rgbto16(255,165,0), rgbto16(255,255,0), rgbto16(0,128,0), rgbto16(0,0,255), rgbto16(75,0,130), rgbto16(238,130,238) };
In the start:
unsigned int barheight = dispheight/rainbow_numberofcolors; for( i = 0; i < rainbow_numberofcolors-1; i = i + 1 ){ plotblock(0, i*barheight, dispwidth, barheight, rainbowcols[i]); }
Added a version to make rainbow stripes, hard coded the longway.
https://github.com/carlynorama/2017superconbadge/blob/master/rainbowbadge.c
right now, super lazy hardcoded way.
plotblock(0, 0, dispwidth, 20, rgbto16(255,0,0)); plotblock(0, 20, dispwidth, 20, rgbto16(255,165,0)); plotblock(0, 40, dispwidth, 20, rgbto16(255,255,0)); plotblock(0, 60, dispwidth, 20, rgbto16(0,128,0)); plotblock(0, 80, dispwidth, 20, rgbto16(0,0,255)); plotblock(0, 100, dispwidth, 20, rgbto16(75,0,130)); plotblock(0, 120, dispwidth, 20, rgbto16(238,130,238));
View all 2 project logs
alternatively you can download the files and import them in to the project with your prefered method.
View all instructions
Create an account to leave a comment. Already have an account? Log In.
muzi
Dimitar
ilo
seasleyece
Become a member to follow this project and never miss any updates
Yes, delete it Cancel
You are about to report the project "2017 SCB: Very Basic Badge", please tell us the reason.
Your application has been submitted.
Are you sure you want to remove yourself as a member for this project?
Project owner will be notified upon removal.