Older Newer
Sun, 26 Dec 2021 05:14:40 . . . . SyneRyder [Note minimum FM version requirement]


Changes by last author:

Added:
= t4setp =

Requires FM 1.0 Beta 8.5 (Nov 2007) or newer

== Syntax ==

:int t4setp(int x, int y, int val)

== Arguments ==

:x, y

::Image coordinates

:val

::Pixel value that shall be stored

== Return ==

:Always returns a value of 1

== Description ==

:This function lets you write a whole pixel to the fourth tile buffer. Using t4setp instead of t4set takes only approximately half as much time. You have to use the RGB or RGBA function to create a pixel value from individual color values. Make sure that the individual color values lie between 0 and 255, otherwise they will be mixed up when passing them to this function.

== Example ==

== See Also ==

:srcp, pgetp, psetp, tgetp, tsetp, t4getp, RGB, RGBA

== Comments ==

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.