~npisanti/rsk_tools

e1a2defea6bea4baaac728acf62a44dbb967ba57 — Nicola Pisanti 3 months ago 1d625c3
updates for API changes
2 files changed, 6 insertions(+), 7 deletions(-)

M framescan/main.lua
M tilecutter/main.lua
M framescan/main.lua => framescan/main.lua +5 -6
@@ 78,9 78,8 @@ function loop()
	layer.open()
		rl.push()
			rl.clear( 0, 0, 0, 0 )
			rl.translate( -cx, -cy ) 
			rl.color( 255, 255, 255, 255 )
			layer.pipe( "cam" )	
			layer.draw( "cam", -cx, -cy )	
		rl.pop()
	layer.close()



@@ 89,7 88,7 @@ function loop()
		rl.clear( 0, 0, 0, 0 )
		rl.push()
		rl.scale( scale, scale ) 
			layer.pipe( "cam" )
			layer.draw( "cam", 0, 0 )
			--cam.draw( 0, 0 )
			overlay( cx, cy, tilew, tileh )
		rl.pop()


@@ 101,7 100,7 @@ function loop()

			if png.size() ~= 0 then
				if preview == 0 then 
					layer.pipe( "cut" )
					layer.draw( "cut", 0, 0 )
				elseif preview == 1 then 
					png.frame( 0 )
					png.draw( 0, 0 )


@@ 109,13 108,13 @@ function loop()
					png.frame( png.size()-1 )
					png.draw( 0, 0 )	
				elseif preview == 3 then 
					layer.pipe( "cut" )
					layer.draw( "cut", 0, 0 )
					rl.blend_additive()
					rl.color(255,0,0, 255)
					png.frame( 0 )
					png.draw( 0, 0 )
				elseif preview == 4 then
					layer.pipe( "cut" )
					layer.draw( "cut", 0, 0 )
					png.frame( png.size()-1 )
					rl.blend_additive()
					rl.color(255,0,0, 255)

M tilecutter/main.lua => tilecutter/main.lua +1 -1
@@ 55,7 55,7 @@ function loop()
		rl.push()
			rl.translate( png.width()*scale + 20, 20 )
			rl.color(255, 255, 255, 255)
			layer.pipe( "cut" )
			layer.draw( "cut", 0, 0 )
			overlay( 0, 0, tilew, tileh )
		rl.pop()
	layer.close()