Skip to main content

sc.virtualdisplay

The virtual display module allows you to do display related drawing to a virtual display without having the physical one, you can then render your image and draw it to a real display.


Functions

new

sc.virtualdisplay.new(displayWidth, displayHeight)

Creates a new virtual display instance.

Arguments:

  • displayWidth [ Integer ] The width of the virtual display.
  • displayHeight [ Integer ] The height of the virtual display.

Returns: