display

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package display specifies the preference values for the displaying of a TV image by a GUI. The types in this package are intended to be agnostic of which GUI system is being used.

The package also houses the shaders subpackage. GLSL shaders should also be GUI system agnostic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRT

type CRT struct {
	Enabled prefs.Bool

	Curve          prefs.Bool
	RoundedCorners prefs.Bool
	Bevel          prefs.Bool
	Shine          prefs.Bool
	Mask           prefs.Bool
	Scanlines      prefs.Bool
	Interference   prefs.Bool
	Flicker        prefs.Bool
	Fringing       prefs.Bool
	Ghosting       prefs.Bool
	Phosphor       prefs.Bool

	CurveAmount          prefs.Float
	RoundedCornersAmount prefs.Float
	BevelSize            prefs.Float
	MaskIntensity        prefs.Float
	MaskFine             prefs.Float
	ScanlinesIntensity   prefs.Float
	ScanlinesFine        prefs.Float
	InterferenceLevel    prefs.Float
	FlickerLevel         prefs.Float
	FringingAmount       prefs.Float
	GhostingAmount       prefs.Float
	PhosphorLatency      prefs.Float
	PhosphorBloom        prefs.Float
	Sharpness            prefs.Float
	BlackLevel           prefs.Float

	PixelPerfectFade prefs.Float
	// contains filtered or unexported fields
}

func (*CRT) Load

func (p *CRT) Load() error

Load CRT values from disk.

func (*CRT) Save

func (p *CRT) Save() error

Save current CRT values to disk.

func (*CRT) SetDefaults

func (p *CRT) SetDefaults()

SetDefaults revers all CRT settings to default values.

func (*CRT) String

func (p *CRT) String() string

type Colour

type Colour struct {
	Brightness prefs.Float
	Contrast   prefs.Float
	Saturation prefs.Float
	Hue        prefs.Float
	// contains filtered or unexported fields
}

func (*Colour) Load

func (p *Colour) Load() error

Load colour values from disk

func (*Colour) Save

func (p *Colour) Save() error

Save current colour values to disk

func (*Colour) SetDefaults

func (p *Colour) SetDefaults()

SetDefaults reverts all colour values to default

func (*Colour) String

func (p *Colour) String() string

type Preferences

type Preferences struct {
	Colour *Colour
	CRT    *CRT
}

func NewPreferences

func NewPreferences() (*Preferences, error)

NewPreferences is the preferred method of initialisation for the Preferences type.

Directories

Path Synopsis
Package shaders contains the shader source for displaying GUI elements on the screen.
Package shaders contains the shader source for displaying GUI elements on the screen.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL