Some fonts are grainy
-
I take a new scene an add this lines. On my iPhone 6s I get three lines with the colors black, green and red. But only the black one looks good. The black one is smooth. The other lines are very grainy and it looks like a bold font. What is the reason?
def draw(self):
tint(0,0,0,1) text('Hallo123456789','Helvetica',16,100,60) tint(255,0,0,1) text('Hallo123456789','Helvetica',16,100,40) tint(0,255,0,1) text('Hallo123456789','Helvetica',16,100,20)
-
Try 1.0 instead of 255. The rgba values are 0.0-1.0, not 0-255.
-
@Oscar Good catch!! Also it is super helpful for those of us using the onscreen keyboard it you put space between your function parameters.
If you double tap to select the 255 in (255,0,0,1) you will have selected all four parameters and you will need to waste a few more seconds to select just the 255.
If you double tap to select the 255 in (255, 0, 0, 1) you will have selected just the parameter of interest and you can type 1 and run to see the results.