Search the Community
Showing results for tags 'draw'.
So this is more of a two-part question. Is there a way to draw a grid on screen of a certain number of squares (based on a number fed to it) while also scaling to the resolution of the screen? Eg. Draw a grid of say 7 squares, and fit them to the resolution of the screen. Is there a way to draw a sprite on the screen without manually having to feed each pixel in. Two approaches I was thinking of was either grabbing the texture from the block itself, or loading in a sprite to fit the size required. Eg. I want to draw the lava texture on the screen at a specific p
**UPDATED** ++Now With Image Lib!!++ DrawPlus - http://pastebin.com/3CKz7MDy Image library - http://pastebin.com/yxCUs4hw Call this program with a filename, a width and a height eg: paintPlus myMasterpiece 100 50. You can leave the numbers out if you are calling a previously saved picture eg: paintPlus myMasterpiece The image library goes in your /lib folder and is used just like this: local img = require "imglib" --or whatever you called it.. local data = img.load("/Images/yourImage") img.draw(data, x, y) --x and y being where you want it. All images loaded by the image