Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Alice umm so we, uhh, make in, uhh, c#, so, uhh, ...,, nvm
added to issues! (https://github.com/devBanner/...) -
C0D4681386yBlack on yellow, but everyone will want different.
If color = W
Hex = ffffff
Else
Hex = 000000 -
umm that is a bit complicated with the font we r using, will check if the imagesharp library supports it
-
Kimmax111066y@CozyPlanes just add an parameter to the controller that accepts any hexadecimal color
It's not complicated. I know it because I shat that baby out -
@Kimmax (cries that there isn't any working laptops, all broke down, sobs) Ok, sounds good
-
yes? with SVG you can do it with javascript and svg text variable and that way you can make a configurator. Then run a instance of a headerless browser which flattens the svg to png or gif.
https://goo.gl/yprL9O
Raphaël—JavaScript Library - GitHub Pages -
Yeah, uh huh, you know what it is
Black and yellow, black and yellow
Black and yellow, black and yellow -
xewl41716yHonestly, you should be able to calculate darkness in the chosen background-color to make the text the inverse color.
So, if more orange, then white should be defaulted. If more lemon, black...
(int)Math.Sqrt( c.R * c.R * .241 + c.G * c.G * .691 + c.B * c.B * .068) < 130 ? WHITE : BLACK; -
In my opinion if you want the text to be there but you don't want to add emphasis on it, go with white (like the word "Rant" at the to of the screen), but if you want it easily seen, definitely black
-
@xewl there is already one and if that function is executed, it results a black font
Just asked u ranters' prefs
Related Rants
Hey, fellow devranters, there is a major update to the devBanner project, but before releasing it, we (or I) would like to ask you, fellow devranters, a question, or a simple poll.
Do you think white font is better in yellow bg? Or should we change to black font?
Leave your opinion !!!!
To see the sample pic, see the section below.
Thanks!
rant
devbanner