GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
force_image_blend(3) Arcan Lua API force_image_blend(3)

force_image_blend - Control image blend behaviour

nil
force_image_blend( vid:dst )
force_image_blend( vid:dst, int:mode )

There are a number of controls for adjusting how overlapping objects that are translucent or has transparent contents described by an alpha color channel are supposed to combine. This function can be used to change that behavior. If no mode is set, the system default will be set. Other blend-modes are: BLEND_NORMAL (disable blending if object opacity is marked as opaque) BLEND_ADD (one, one: additive blending, rgb channels will be combined) BLEND_SUB (one: dst will be subtracted based on one-src alpha), BLEND_MUL (dst-color, one-src alpha), BLEND_PREMULTIPLIED (one, one-src alpha: the source object has its alpha values pre-multiplied into the color channels)

1
The default can be changed by calling switch_default_blendmode .

function force_image_blend0()
      a = fill_surface(32, 32, 255, 0, 0);
      blend_image(a, 0.5);
      force_image_blend(a, BLEND_ADD);
end

function force_image_blend0()
      force_image_blend(BADID, BLEND_NORMAL);
end

function force_image_blend1()
      a = fill_surface(32, 32, 255, 0, 0);
      force_image_blend(a, -10);
end
June 2022 image

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.