pong

package
v0.0.0-...-13c0f8f Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lerp

func Lerp(a float32, b float32, pct float32) float32

Lerp Find distance between two point

func Run

func Run()

Run Start the sdl

Types

type Color

type Color struct {
	Red, Green, Blue byte
}

Color type

func Black

func Black() Color

Black return black color

func NewColor

func NewColor(r byte, g byte, b byte) Color

NewColor Create and return a color struct

func White

func White() Color

White return white color

type Pixels

type Pixels struct {
	// contains filtered or unexported fields
}

Pixels each pixel of the screen

type Pos

type Pos struct {
	X, Y float32
}

Pos Position X AND Y

func NewPos

func NewPos(x, y float32) Pos

NewPos Return a Pos truct

Jump to

Keyboard shortcuts

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