Home Reference Source

References

cables/src/core

summary
public
public
public
public
public

C PatchVariable(name: String, value: String | Number): Object

public

F Anim(cfg: *)

Keyframed interpolated animation.

public

F Key(obj: *)

public

F easeCubicIn(t: *): *

public

F easeCubicInOut(t: *): *

public

F easeCubicOut(t: *): *

public

F easeExpoIn(t: *): *

public

F easeExpoInOut(t: *): *

public

F easeExpoOut(t: *): *

public

F Link(scene: Object)

public

F Op(): *

public

F Port(___op: *, name: *, type: *, uiAttribs: *): *

data is coming into and out of ops through input and output ports

public
public

F LoadingStatus(patch: *)

LoadingStatus class, manages asynchronous loading jobs

public

F Variable()

todo: old...

public

F Timer()

Measuring time

public

F internalNow(): *

public

F now(): *

current time in milliseconds

public

F ajax(url: *, cb: *, method: *, post: *, contenttype: *, jsonP: *, headers: *, options: *)

make an ajax request

public

F ajaxSync(url: *, cb: *, method: *, post: *, contenttype: *)

public

F basename(url: String): String

return the filename part of a url without extension

public

F cacheBust(url: String): String

append a unique/random parameter to a url, so the browser is forced to reload the file, even if its cached

public

F clamp(value: Number, min: Number, max: Number): *

clamp number / make sure its between min/max

public

F cleanJson(obj: *): *

public

F copyArray(src: Array, dst: Array): Array

copy the content of an array

public

F filename(url: String): String

return the filename part of a url

public

F getShortOpName(fullname: string): *

get op shortname: only last part of fullname and without version

public

F keyCodeToName(keyCode: *): *

public

F logErrorConsole(initiator: *)

public

F logStack()

output a stacktrace to the console

public

F map(x: Number, _oldMin: Number, _oldMax: Number, _newMin: Number, _newMax: Number, _easing: Number): Number

map a value in a range to a value in another range

public

F request(options: *)

public

F shuffleArray(array: Array | Float32Array): Array | Float32Array

randomize order of an array

public

F simpleId(): *

public

F smoothStep(perc: Number): Number

smoothStep a value

public

F smootherStep(perc: Number): Number

smootherstep a value

public

V ANIM: {"Key": *}

public

V CONSTANTS: {"ANIM": *, "OP": *, "PORT": *, "PACO": *}

public

V EMBED: {}

public

V UTILS: {}

public
public
public

V shortId: *

public

V uuid: *

public

V WEBAUDIO: {}

public

T PatchConfig: Object

configuration object for loading a patch

cables/src/core/cg

summary
public

C BoundingBox(geometry: Geometry)

bounding box

public
public
public
public
public
public
public

F Geometry(name: String): *

a geometry contains all information about a mesh, vertices, texturecoordinates etc.

public
public

F preproc(str: *, vars: *): *

public

V CG: {"GAPI_WEBGL": *, "GAPI_WEBGPU": number, "DEPTH_COMPARE_NEVER": *, "DEPTH_COMPARE_LESS": number, "DEPTH_COMPARE_EQUAL": number, "DEPTH_COMPARE_LESSEQUAL": number, "DEPTH_COMPARE_GREATER": number, "DEPTH_COMPARE_NOTEQUAL": number, "DEPTH_COMPARE_GREATEREQUAL": number, "DEPTH_COMPARE_ALWAYS": number, "CULL_NONE": *, "CULL_BACK": number, "CULL_FRONT": number, "CULL_BOTH": number, "Geometry": *, "BoundingBox": *, "FpsCounter": *, "CgCanvas": *}

cables/src/core/cgl

summary
public
public

C Shader(_cgl: *, _name: *, _op: *)

public

C Uniform(shader: Shader, type: String, name: String, value: Number | Port)

Shader uniforms

public

cables gl context/state manager

public

C Texture(__cgl: Context, options: Object)

A Texture

public
public

F Framebuffer(_cgl: Context, _w: Number, _h: Number, options: Object)

a framebuffer

public

F Framebuffer2(cgl: *, w: *, h: *, options: *): *

public

F Marker(_cgl: *)

public

F WireCube(cgl: *)

public

F WirePoint(cgl: *)

public

F Mesh(_cgl: Context, __geom: Geometry, _options: Number): *

webgl renderable 3d object

public

F TextureEffect(cgl: *, options: *)

public

F escapeHTML(string: *): *

public

V MESH: {}

public

V ShaderLibMods: {"CGL.BLENDMODES": *, "CGL.BLENDMODES3": *, "CGL.LUMINANCE": *, "CGL.RANDOM_OLD": *, "CGL.RANDOM_LOW": *, "CGL.RANDOM_TEX": *}

public

V MESHES: {}

public

V BLENDS: {"BLEND_NONE": *, "BLEND_NORMAL": number, "BLEND_ADD": number, "BLEND_SUB": number, "BLEND_MUL": number}

public

V DEG2RAD: *

multiply to get radians from degree, e.g.

public

V RAD2DEG: *

to get degrees from radians, e.g.

public
public
public

V isWindows(event: MouseEvent): Number: *

get normalized mouse wheel delta (including browser specific adjustment)

public
public

V CONSTANTS: {"MATH": *, "SHADER": *, "BLEND_MODES": *}

public

V CGL: {"Framebuffer": *, "Framebuffer2": *, "Geometry": *, "BoundingBox": *, "Marker": *, "WirePoint": *, "WireCube": *, "MatrixStack": *, "Mesh": *, "MESH": *, "ShaderLibMods": *, "Shader": *, "Uniform": *, "MESHES": *, "Context": *, "Texture": *, "TextureEffect": *, "isWindows": *, "getWheelSpeed": *, "getWheelDelta": *, "onLoadingAssetsFinished": *, "ProfileData": *, "UniColorShader": *, ...undefined: Object}

cables/src/core/cgp

summary
public
public
public

C Mesh

public
public

C Shader

public

cables webgpu context/state manager

public
public
public

V CGP: {"Context": *, "Shader": *, "Mesh": *, "Pipeline": *, "Texture": *, "Binding": *, "Uniform": *, "MESHES": *, "GPUBuffer": *}

cables/src/libs/cgl/copytexture

summary
public

cables/src/libs/cgl/cubemapframebuffer

summary
public
public

cables/src/libs/cgl/deprecatedMeshFeedback

summary
public

cables/src/libs/cgl/light

summary
public
public
public
public

cables/src/libs/cgl/pixelreader

summary
public

cables/src/libs/cgl/rendertargets

summary
public

cables/src/libs/cgl/shadergraph

summary
public
public
public

cables/src/libs/cgl/shadermodifier

summary
public

cables/src/libs/cgl/texturemath

summary
public

cables/src/libs/cgl/wireframes

summary
public
public