C# Class DockingCamera.Util

Static class of utilities
Datei anzeigen Open project: DennyTX/DockingCam

Public Methods

Method Description
GetTimeMark ( Double UniversalTime ) : String
LoadTexture ( string name ) : Texture2D

Load Texture2D from standard folder

MonoColorHorizontalLineTexture ( Color color, int size ) : Texture2D

Generate horizontal line

MonoColorRectTexture ( Color color ) : Texture2D

Generate rectangle

MonoColorTexture ( Color color, int width, int height ) : Texture2D

Texture generating a specific color

MonoColorVerticalLineTexture ( Color color, int size ) : Texture2D

Generate vertical line

SavePng ( this renderTexture, string photoFrom ) : void

This class converts time strings like "1d 2m 2s" into a double value as seconds and also vice versa, based on kerbin time.

WhiteNoiseTexture ( int width, int height, float alpha = .16f ) : Texture2D

Private Methods

Method Description
converter ( Double time, StringBuilder timeMark, uint seconds, String suffix ) : Double

Method Details

GetTimeMark() public static method

public static GetTimeMark ( Double UniversalTime ) : String
UniversalTime Double
return String

LoadTexture() public static method

Load Texture2D from standard folder
public static LoadTexture ( string name ) : Texture2D
name string Texture name without extension
return UnityEngine.Texture2D

MonoColorHorizontalLineTexture() public static method

Generate horizontal line
public static MonoColorHorizontalLineTexture ( Color color, int size ) : Texture2D
color UnityEngine.Color
size int
return UnityEngine.Texture2D

MonoColorRectTexture() public static method

Generate rectangle
public static MonoColorRectTexture ( Color color ) : Texture2D
color UnityEngine.Color
return UnityEngine.Texture2D

MonoColorTexture() public static method

Texture generating a specific color
public static MonoColorTexture ( Color color, int width, int height ) : Texture2D
color UnityEngine.Color
width int
height int
return UnityEngine.Texture2D

MonoColorVerticalLineTexture() public static method

Generate vertical line
public static MonoColorVerticalLineTexture ( Color color, int size ) : Texture2D
color UnityEngine.Color
size int
return UnityEngine.Texture2D

SavePng() public static method

This class converts time strings like "1d 2m 2s" into a double value as seconds and also vice versa, based on kerbin time.
public static SavePng ( this renderTexture, string photoFrom ) : void
renderTexture this
photoFrom string
return void

WhiteNoiseTexture() public static method

public static WhiteNoiseTexture ( int width, int height, float alpha = .16f ) : Texture2D
width int
height int
alpha float
return UnityEngine.Texture2D