Skip to content

WritePixelFast64

Narta Xaymar Dirks edited this page Oct 28, 2026 · 4 revisions
BlitzLLVM

WritePixelFast64 〔BlitzLLVM〕

WritePixelFast64:Void x:Int32, y:Int32, buffer:Int32=0, red:Float16, green:Float16, blue:Float16, alpha:Float16
Parameter Mode Type Default Description
x In Int32 required Horizontal position of the pixel.
y In Int32 required Vertical position of the pixel.
buffer In Int32 0 The locked buffer to write to. Pass 0 for the current buffer.
red In Float16 required The red of the color, as a Float16.
green In Float16 required The green of the color, as a Float16.
blue In Float16 required The blue of the color, as a Float16.
alpha In Float16 required The alpha of the color, as a Float16.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Sets a pixel of a locked buffer to a color given in the form of WritePixel64. The buffer has to be locked with LockBuffer and the change shows when it is unlocked. This is a BlitzLLVM extension. Writes the color of a pixel of a locked buffer from four half precision floats (Float16), like WritePixel64. The buffer has to be locked with LockBuffer. This is a BlitzLLVM extension.

Differences

  • A position outside of the buffer is ignored, and a buffer that is not locked is ignored by a build without -d and stops a debug build (-d) with an error message.

Examples

Graphics3D 320, 240, 64, 2
SetBuffer BackBuffer()
LockBuffer
For x = 0 To 255
	WritePixelFast64 x, 10, 0, x / 255.0, 0.25, 0.0, 1.0
Next
UnlockBuffer
Flip
WaitKey

Related Commands

CopyPixel, CopyPixelFast, ReadPixel, ReadPixelFast, ReadPixelFast64 〔BlitzLLVM〕, WritePixel, WritePixel64 〔BlitzLLVM〕, WritePixelFast

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally