Pages: 1
Author Topic: Alternates to these functions?  (79,808 Views)
Offline (Unknown gender) Lukesterspy

Member
Joined: Apr 2008
Posts: 7
View profile WWW
Posted on: April 09, 2008, 12:34:25 AM
Okay, I was just wondering what alternates you guys can come up with for these functions.
draw_text()
make_color_rgb()
draw_triangle()
Offline (Unknown gender) Quadduc

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 15
View profile
Reply #1 Posted on: April 09, 2008, 12:48:37 AM
make_color_rgb(r, g, b) is already implemented. Ranges are 0-255 and you may need to floor() the input values.
Offline (Unknown gender) Lukesterspy

Member
Joined: Apr 2008
Posts: 7
View profile WWW
Reply #2 Posted on: April 09, 2008, 12:55:34 AM
Huh, it didn't work for me when I tried. I guess I will try flooring the arguments.
Offline (Unknown gender) Austin

Member
Joined: Apr 2008
Posts: 32
View profile
Reply #3 Posted on: April 09, 2008, 12:56:28 AM
Quote from: Lukesterspy on April 09, 2008, 12:34:25 AM
draw_triangle()
You could use vertexes. I think they are implemented...
Offline (Unknown gender) Lukesterspy

Member
Joined: Apr 2008
Posts: 7
View profile WWW
Reply #4 Posted on: April 09, 2008, 01:07:40 AM
Yeah, flooring the arguments worked. For the triangle, since Enigma can handle it, I just drew a bunch of lines.
Offline (Unknown gender) Living Spiral

Member
Joined: Apr 2008
Posts: 13
View profile
Reply #5 Posted on: April 09, 2008, 11:18:11 PM
The closest thing to being able to draw text is making a script which draws a specific group of shapes (which resembles text) based upon what the argument to the script is.
Offline (Unknown gender) Rusky

Resident Troll
Joined: Feb 2008
Posts: 954
View profile WWW
Reply #6 Posted on: April 09, 2008, 11:35:15 PM
or using the window caption like a sane person.
Offline (Unknown gender) Living Spiral

Member
Joined: Apr 2008
Posts: 13
View profile
Reply #7 Posted on: April 09, 2008, 11:54:47 PM
Quote from: Rusky on April 09, 2008, 11:35:15 PM
or using the window caption like a sane person.
Haha. I think it's more entertaining to do it my way.
Offline (Unknown gender) Lukesterspy

Member
Joined: Apr 2008
Posts: 7
View profile WWW
Reply #8 Posted on: April 10, 2008, 03:46:03 PM
The window caption functions actually work?
Offline (Unknown gender) Rusky

Resident Troll
Joined: Feb 2008
Posts: 954
View profile WWW
Reply #9 Posted on: April 10, 2008, 09:45:49 PM
Hmm, apparently not. Josh used it in his examples though, so it's possible. Shouldn't be too hard to just stick some c into your code:
//C++
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #10 Posted on: April 13, 2008, 02:25:20 PM
window_set_caption should work... I've had no problem with it.
Pages: 1