Search found 16 matches

by Neon
Mon Apr 30, 2012 6:25 pm
Forum: Support and Development
Topic: Transparency
Replies: 1
Views: 1681

Transparency

How do I make a drawn rectangle, or image slightly transparent? Can I?

Also, if you have any ideas for a GUI Library, I'd like to hear them.
by Neon
Sun Apr 29, 2012 10:02 pm
Forum: Support and Development
Topic: Image Colour Workaround?
Replies: 5
Views: 2355

Re: Image Colour Workaround?

Nevermind, Zeliarden's worked. Thanks.
by Neon
Sun Apr 29, 2012 9:22 pm
Forum: Support and Development
Topic: Image Colour Workaround?
Replies: 5
Views: 2355

Re: Image Colour Workaround?

Larsii, I somewhat understand what you mean. Is there a easier way? I assume I could use your system, but a easier way would work much better. Here is the function to draw all the objects in my lib. function Lib.draw() -- Draws all the objects. for k, obj in pairs(Objects) do if obj.objtype == "...
by Neon
Sun Apr 29, 2012 8:45 pm
Forum: Support and Development
Topic: Image Colour Workaround?
Replies: 5
Views: 2355

Image Colour Workaround?

When I set the colour of text, it changes the colour like it should. However, I can set the colour for my image, because it uses multiple colours (as most images do). How do I make it so when I use a image, it stay the colour it is, and is not affected by the current colour? I tried: love.graphics.s...
by Neon
Sun Apr 29, 2012 3:43 pm
Forum: Support and Development
Topic: Function not running?
Replies: 3
Views: 2379

Re: Function not running?

Thanks! It worked.
by Neon
Sun Apr 29, 2012 2:54 pm
Forum: Support and Development
Topic: Function not running?
Replies: 3
Views: 2379

Function not running?

So, I'm making a small little lib to make it easier to make graphics. I'm giving each button a function to run, if they are clicked. function love.mousepressed(x, y, button) for k, obj in pairs(Objects) do if obj.objtype == "Button" and x > obj.xpos and x < obj.xpos + obj.width and y > obj...
by Neon
Sun Apr 29, 2012 1:55 am
Forum: Support and Development
Topic: A variety of questions.
Replies: 5
Views: 2674

Re: A variety of questions.

That really helps! Can you refer me to some awesome tutorials?
by Neon
Sat Apr 28, 2012 11:18 pm
Forum: Support and Development
Topic: A variety of questions.
Replies: 5
Views: 2674

Re: A variety of questions.

That really helped, I have two last questions. Say I create a button using the example in one. How can I define it, so I can edit it? button = love.graphics.rectangle("fill",200,200) button.x = 300 I doubt the above code would work, but it is a example. How would I do something like this? ...
by Neon
Sat Apr 28, 2012 10:56 pm
Forum: Support and Development
Topic: A variety of questions.
Replies: 5
Views: 2674

A variety of questions.

1. How do I set the colour of a rectangle to a specific colour, but have text be a different colour. function love.draw() love.graphics.rectangle("fill", 200, 200, 200, 200) love.graphics.setColor(100,100,100) love.graphics.print("Test", 500, 500) end The above code shows them bo...
by Neon
Tue Apr 03, 2012 9:11 pm
Forum: Support and Development
Topic: Libraries
Replies: 24
Views: 8647

Re: Libraries

I do use them, I have it so I can throw in as many things as I want. So that it can print any number.