Navigation

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

    DrawTextShadow()

    Coding
    2
    2
    205
    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.
    • N
      Nisse5 F last edited by Nisse5

      Made a function for text with customizable shadow today. I've shared it, if someone needs it.

      Here's the function:

      function DrawTextShadow(x, y, fontsize, color, shadowcolor1, shadowcolor2, depth, s)
         for i = 0 to depth loop
            clr = lerp(shadowcolor2, shadowcolor1, i / depth)
            drawText(x + depth - i, y - depth + i, fontsize, clr, s)
         repeat
         drawText(x, y, fontsize, color, s)
      return void
      
      1 Reply Last reply Reply Quote 6
      • Jongjungbu
        Jongjungbu F last edited by

        I do similarly for my text adventure, but I didn’t create a function for it like you did. I should replace all those double drawtext calls with this.

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