mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
Implement loading .png and refactor
This commit is contained in:
6
distribution/openrct2.d.ts
vendored
6
distribution/openrct2.d.ts
vendored
@@ -2894,10 +2894,14 @@ declare global {
|
||||
type: 'png';
|
||||
|
||||
/**
|
||||
* How the colours of the .png file are converted to the OpenRCT2 palette.
|
||||
* If keep is specified for palette, the raw 8bpp .png bytes will be loaded. The palette
|
||||
* in the .png will not be read. This will improve load performance.
|
||||
* Closest will find the closest matching colour from the OpenRCT2 palette.
|
||||
* Dither will add noise to reduce colour banding for images rich in colour.
|
||||
* If undefined, only colours that are in OpenRCT2 palette will be imported.
|
||||
*/
|
||||
palette?: 'keep';
|
||||
palette?: 'keep' | 'closest' | 'dither';
|
||||
|
||||
/**
|
||||
* Data can either by a:
|
||||
|
||||
Reference in New Issue
Block a user