Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
image_origo_offset(3)		 Arcan Lua API		 image_origo_offset(3)

NAME
       image_origo_offset - Shift the current object rotation offset

SYNOPSIS
       nil
       image_origo_offset( vid:dst, number:xofs, number:yofs )
       image_origo_offset( vid:dst, number:xofs, number:yofs, number:zofs )

DESCRIPTION
       By default, the rotation	origo for each object is set to	its local cen-
       ter (0.5*w, 0.5*h).

NOTES
       1      This is relative to the local object itself. For complex	object
	      hierarchies, the bounding	volume would have to be	calculated and
	      each object shifted.

EXAMPLE
       function	image_origo_offset0()
	     a = fill_surface(32, 32, 255, 0, 0);
	     b = fill_surface(32, 32, 0, 255, 0);
	     show_image({a, b});
	     move_image(a, 50, 100);
	     move_image(b, 100,	100);
	     rotate_image(a, 45);
	     rotate_image(b, 45);
	     image_origo_offset(b, -10,	-10);
       end

image				September 2021		 image_origo_offset(3)

NAME | SYNOPSIS | DESCRIPTION | NOTES | EXAMPLE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=image_origo_offset&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help