sky

package
v0.0.0-...-2f5b0de Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

type Cloud struct {
	Pos   rl.Vector2
	Kind  string // "cirrus", "cumulus", "stratus"
	Color rl.Color
}

type Moon

type Moon struct {
	Radiance float32
	Pos      rl.Vector2
	Color    rl.Color
}

type Particle

type Particle struct {
	Pos   rl.Vector2
	Speed rl.Vector2
	Color rl.Color
}

type Sky

type Sky struct {
	Color     color.RGBA
	Sun       Sun
	Moon      Moon
	Stars     []Star
	Particles []Particle
	Clouds    []Cloud
}

func InitSky

func InitSky(c scape.City, x, y float32) Sky

type Star

type Star struct {
	Pos        rl.Vector2
	Color      rl.Color
	Brightness float32
}

type Sun

type Sun struct {
	Radiance float32
	Pos      rl.Vector2
	Color    rl.Color
}

Jump to

Keyboard shortcuts

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