Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to change text color?

edited February 2013 in Questions Posts: 37

anyone know?

Tagged:

Comments

  • Just invoke the fill() function before the text() function. Here's an example:

    -- TextColor
    
    -- Use this function to perform your initial setup
    function setup()
    end
    
    -- This function gets called once every frame
    function draw()
        -- This sets a dark background color 
        background(40, 40, 50)
    
        -- Do your drawing here
        fill(255, 128, 0, 255)
        fontSize(40)
        text("Hello World!", WIDTH/2, HEIGHT/2)
    end
    
  • Jmv38Jmv38 Mod
    Posts: 3,295

    .@kingamer you are new to codea => there is a very good in-app documentation, you should consider reading it, because you'll find there the answer to most of your questions, with examples.

Sign In or Register to comment.