Search found 42 matches

by GVovkiv
Sun Mar 07, 2021 9:49 am
Forum: Support and Development
Topic: Scaling text in printf
Replies: 6
Views: 800

Re: Scaling text in printf

Thank you for your solution. At the beginning I was using print and a similar approach, but in the context of the game the 'sting' is longer tha just "hello world" and with printf it could be splitted in two lines. I couldn't figure out how to mix the two things.... Well, you can use &quo...
by GVovkiv
Sat Mar 06, 2021 10:28 pm
Forum: Support and Development
Topic: Getting Image Data of Image
Replies: 4
Views: 599

Re: Getting Image Data of Image

I guess you talking about https://love2d.org/wiki/(Image):getData If you read the big red warning at the top, you'll see that this function is removed since love 11.0. And like the warning suggests, there is no way to get an ImageData from an Image anymore - instead, you should first create an Imag...
by GVovkiv
Sat Mar 06, 2021 10:25 pm
Forum: Support and Development
Topic: Scaling text in printf
Replies: 6
Views: 800

Re: Scaling text in printf

string = "Hello, World!" ww, wh = 0, 0 msgFont = love.graphics.newFont(24) msgFontHeight = msgFont:getHeight() msgTextOpacity = 300 msgTextSize = 1 function love.update(dt) msgTextOpacity = msgTextOpacity - 300*dt msgTextSize = msgTextSize + dt ww, wh = love.graphics.getWidth() / msgTextS...
by GVovkiv
Sat Mar 06, 2021 10:05 pm
Forum: Support and Development
Topic: Getting Image Data of Image
Replies: 4
Views: 599

Re: Getting Image Data of Image

I guess you talking about https://love2d.org/wiki/(Image):getData
by GVovkiv
Fri Mar 05, 2021 10:09 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 2167

Re: graphics tablet

well, i made new issue on love's github, maybe Alex will say something about it
by GVovkiv
Fri Mar 05, 2021 10:06 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 2167

Re: graphics tablet

I've tried this code (touch-pressure-01.love) with Wacom Bamboo Fun Pen & Touch , it feels like a mouse click, the pressure is always 1 (Wacom Bamboo Fun Pen & Touch supports pressure, the pen with 1024 levels of pressure sensitivity). well, i guess Wacom emulates touch sreen clicks, but st...
by GVovkiv
Fri Mar 05, 2021 10:03 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 2167

Re: graphics tablet

I've tried this code (touch-pressure-01.love) with Wacom Bamboo Fun Pen & Touch , it feels like a mouse click, the pressure is always 1 (Wacom Bamboo Fun Pen & Touch supports pressure, the pen with 1024 levels of pressure sensitivity). yeah but, i still need thing like pressure, tablet butt...
by GVovkiv
Fri Mar 05, 2021 10:01 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 2167

Re: graphics tablet

Well, for huion h430p it returns nothing The Huion Inspiroy H430P looks like an alternative for a mouse input; so more like a graphics tablet than a tablet computer. Try https://love2d.org/wiki/love.mouse.isDown and https://love2d.org/wiki/love.mouse.getPosition. i know, but i need more specific th...
by GVovkiv
Fri Mar 05, 2021 10:00 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 2167

Re: graphics tablet

It's an alternative for mouse input, yes, like all other graphics tablets. So while you can track them with love.mouse functions, I don't think there's any functionality in löve to detect pressure of the pen touches if love.touch.getPressure doesn't work. Not sure how you would go about it with Hui...
by GVovkiv
Fri Mar 05, 2021 5:14 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 2167

Re: graphics tablet

darkfrei wrote: Fri Mar 05, 2021 4:03 pm

Code: Select all

function love.draw()
	local touches = love.touch.getTouches( )
	for i, id in pairs (touches) do
		local pressure = love.touch.getPressure( id )
		love.graphics.print('i: '..i..' pressure: '..pressure, 32, 32+20*i)
	end
end
Well, for huion h430p it returns nothing