Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Background command

    Help
    6
    9
    359
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kendog400 F last edited by

      Is there a background () command in Fuze ? Just to load a simple background color ? I've looked in the help section, but cant find it....

      pianofire Tratax 2 Replies Last reply Reply Quote 1
      • SteveZX81
        SteveZX81 F last edited by

        There might be but when I wanted one I couldn't find it, so I cheated and used the box command right after the 'clear()' command, to be exact
        box(0,0,1920,1080,black,false)

        Worked okay for me but there's probably a better solution

        1 Reply Last reply Reply Quote 2
        • pianofire
          pianofire Fuze Team @kendog400 last edited by

          @kendog400 try clear(colour) e.g. clear(red)

          1 Reply Last reply Reply Quote 4
          • Tratax
            Tratax F @kendog400 last edited by Tratax

            @kendog400 Just know you can also do clear with a vector to fine tune an exact rgb color combination!

            Example:

            bg = {1.0,1.0,1.0,1.0} // white
            clear(bg) // clears as "white"
            
            
            bg = {0.0,0.5,1.0} // sky blue
            clear(bg) //clears as "sky blue"
            

            Break down of this is {red,green,blue,alpha) between 0.0 and 1.0
            The alpha(transparency) is optional however useful if you're fading into an image @FuzeTeam correct me if im wrong here about that fourth parameter
            You can also incorporate for loops to make a fun fade effect, example below

            setmode(1280,720) // Set the switch to handheld mode.. coz i like that!
            
            bg = { 0.0, 0.0, 0.0 } // Create a variable vector named bg, color black (all rgb values are at 0)
            
            // Create a loop that slowly increases each of the color ranges from black to white
            for i = 0.0 to 1.0 step 0.001 loop
            bg = ({i,i,i})
            clear(bg)
            update()
            repeat
            
            
            N 1 Reply Last reply Reply Quote 3
            • N
              Nisse5 F @Tratax last edited by

              @Tratax FWIW, your example will go from transparent black to full white, meaning that the white will arrive later than during a linear fade in.

              Tratax 1 Reply Last reply Reply Quote 1
              • Tratax
                Tratax F @Nisse5 last edited by

                @Nisse5 Thanks, good point! I'll update that now

                1 Reply Last reply Reply Quote 0
                • K
                  kendog400 F last edited by

                  I found the way to load a background color : clear(green), but I want Dark green,
                  is the code clear(darkGreen) ?

                  Discostew N 2 Replies Last reply Reply Quote 0
                  • Discostew
                    Discostew F @kendog400 last edited by

                    @kendog400 said in Background command:

                    I found the way to load a background color : clear(green), but I want Dark green,
                    is the code clear(darkGreen) ?

                    Yes. Here's a list of known preset colors.

                    https://fuzearena.com/help/view/Colours

                    1 Reply Last reply Reply Quote 0
                    • N
                      Nisse5 F @kendog400 last edited by

                      @kendog400 said in Background command:

                      I found the way to load a background color : clear(green), but I want Dark green,
                      is the code clear(darkGreen) ?

                      If you're interested, I've made a utility where you can visually see how all the color constants look on screen:
                      https://fuzearena.com/forum/topic/497/colour-browser-utility-and-questions-about-colour-numbers

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post