MCPcopy Create free account

hub / github.com/akx/glitch2 / functions

Functions135 in github.com/akx/glitch2

↓ 23 callersMethodgetImageData
* Effect modules should primarily use this to get a reference to the image data * for the current context. It may return a pre-existing ImageData o
libglitch/GlitchContext.ts:27
↓ 21 callersMethodsetImageData
* When an effect is done with image data, it should call this to ensure the context * knows of any possible changes to it. * @param newImageData
libglitch/GlitchContext.ts:58
↓ 19 callersFunctionrandint
(min: number, max: number)
libglitch/lib/rand.ts:1
↓ 17 callersMethodgetContext
* If an effect requires the actual 2D Canvas context instead of just ImageData, * it can call this. May be expensive.
libglitch/GlitchContext.ts:77
↓ 11 callersFunctionrand
(min = 0, max = 1)
libglitch/lib/rand.ts:10
↓ 5 callersMethod_commitImageData
()
libglitch/GlitchContext.ts:66
↓ 5 callersFunctionbuild
( filterFn: (t: T) => string, params: readonly Parameter[] = [], paramDefaults = {}, )
libglitch/modules/fastfilter.ts:46
↓ 5 callersMethodcopyImageData
* When a fresh _copy_ of image data is required, call this potentially expensive method. * @returns {ImageData}
libglitch/GlitchContext.ts:43
↓ 5 callersFunctionshowHide
(ctrl: UIState, id: keyof UIState['ui'], name: string)
glitcher/ui/title.ts:4
↓ 4 callersFunctionclamp
(num: number, min: number, max?: number)
libglitch/lib/num.ts:12
↓ 4 callersFunctiondataBlend
( srcD: ImageData, dstD: ImageData, sA: number, dA: number, blendMode: string, )
libglitch/lib/dataBlend.ts:3
↓ 4 callersFunctionlerp
(a: number, b: number, alpha = 0.5)
libglitch/lib/num.ts:1
↓ 3 callersMethodaddModule
(moduleName: string, pOptions: Record<string, any> = {})
glitcher/State.ts:15
↓ 3 callersFunctioncanvasFromImageData
(imageData: ImageData)
libglitch/lib/resize.ts:1
↓ 3 callersMethodcopyCanvas
* Copy the image data into a new `canvas` element. Can be expensive.
libglitch/GlitchContext.ts:85
↓ 3 callersMethodgetSourceDimensions
()
glitcher/engine.ts:58
↓ 3 callersFunctionmakeRow
( label: string, key: string, min: number, max: number, step: number, )
glitcher/ui/fx.ts:352
↓ 3 callersFunctionmakeSliderRow
( label: string, key: string, min: number, max: number, sliderStep: number, )
glitcher/ui/fx.ts:84
↓ 3 callersFunctionmod
(a: number, b: number)
libglitch/lib/num.ts:26
↓ 3 callersFunctionop
(a: number, b: number, xor: boolean)
libglitch/modules/desolve.ts:22
↓ 3 callersFunctionpolarToXY
(angle: number, distance: number)
libglitch/modules/chromatic_aberration.ts:86
↓ 3 callersFunctionstopCamera
(ctrl: UIState)
glitcher/ui/image.ts:70
↓ 3 callersMethodtoDataURL
()
glitcher/engine.ts:116
↓ 3 callersFunctionwithinDist
(src: number, dst: number)
libglitch/modules/blockshuffle.ts:54
↓ 2 callersFunction_noiseBand
( imageData: ImageData, y0: number, y1: number, noisiness: number, minBrightness: number, maxBrigh
libglitch/modules/noise.ts:15
↓ 2 callersFunctionbiasedRandom
(bias: number)
glitcher/util.ts:4
↓ 2 callersFunctionchromaticAberrationCore
( glitchContext: GlitchContext, offsets: [[number, number], [number, number], [number, number]], hueRota
libglitch/modules/chromatic_aberration.ts:6
↓ 2 callersFunctioncolorTransformImageData
( imageData: ImageData, matrix: readonly number[], )
libglitch/lib/colorTransformImageData.ts:1
↓ 2 callersFunctionforceDownload
(url: string, filename: string)
glitcher/util.ts:94
↓ 2 callersMethodloadFromLocalStorage
(key = 'GlitcherState')
glitcher/State.ts:102
↓ 2 callersMethodmoveDef
(def: Def, direction: number)
glitcher/State.ts:53
↓ 2 callersFunctionrangeToggle
(def: Def, paramName: string, isActive: boolean)
glitcher/ui/fx.ts:50
↓ 2 callersMethodrenderFrame
()
glitcher/engine.ts:62
↓ 2 callersFunctionresizeImage
( img: CanvasImageSource, width: number, height: number, smooth: boolean, )
libglitch/lib/resize.ts:13
↓ 2 callersFunctionresolveRange
( opts: Record<string, any>, // eslint-disable-line @typescript-eslint/no-explicit-any name: string, )
glitcher/util.ts:13
↓ 2 callersFunctionrgb2hsv
( r: number, g: number, b: number, )
libglitch/lib/hsv.ts:3
↓ 2 callersFunctionrotateChoiceParam
( choices: string[], value: string, direction: number, )
glitcher/ui/fx.ts:36
↓ 2 callersMethodserialize
()
glitcher/State.ts:70
↓ 2 callersFunctionshiftImageData
( imageData: ImageData, shiftX: number, shiftY: number, )
libglitch/lib/shift.ts:3
↓ 2 callersMethodunserialize
(ser: string)
glitcher/State.ts:85
↓ 1 callersFunction_bitbang
( outputData: ImageData, inputData: ImageData, options: BitbangOptions, )
libglitch/modules/bitbang.ts:16
↓ 1 callersFunction_leak
( imageData: ImageData, lerp: Lerper, magic1: number, magic2: number, yToMagic1: number, yToMagic2
libglitch/modules/leak.ts:14
↓ 1 callersFunctionaddPasteHandler
(engine: Engine)
glitcher/index.ts:13
↓ 1 callersMethodclear
()
glitcher/State.ts:49
↓ 1 callersFunctiondefEditor
(ctrl: UIState, state: State, def: Def)
glitcher/ui/fx.ts:444
↓ 1 callersMethoddeleteDef
(def: Def | string)
glitcher/State.ts:45
↓ 1 callersFunctionderiveChanMask
(options: SliceglitchOptions)
libglitch/modules/sliceglitch.ts:58
↓ 1 callersFunctiondisplacementMapper
( imageData: ImageData, displacementMap: HTMLCanvasElement, scaleX: number, scaleY: number, )
libglitch/displace/mapper.ts:5
↓ 1 callersMethodduplicateDef
(def: Def)
glitcher/State.ts:38
↓ 1 callersFunctionfastfilterCore
( glitchContext: GlitchContext, pOptions: Partial<T & FastFilterOptions>, filterFn: (t: T) => string, )
libglitch/modules/fastfilter.ts:13
↓ 1 callersMethodfinalize
* This should be called to ensure all changes to the canvas have been committed.
libglitch/GlitchContext.ts:101
↓ 1 callersFunctionfxUI
(ctrl: UIState)
glitcher/ui/fx.ts:559
↓ 1 callersFunctiongenerateGIF
(frames: readonly RecordFrame[])
glitcher/generate-gif.ts:7
↓ 1 callersMethodgetNativeSourceDimensions
()
glitcher/engine.ts:47
↓ 1 callersFunctiongetParamEditor
(def: Def, paramDef: Parameter)
glitcher/ui/fx.ts:132
↓ 1 callersMethodgetSize
* Get the size of the glitch canvas.
libglitch/GlitchContext.ts:108
↓ 1 callersFunctioninjectGA
(propertyId: string | null | undefined)
glitcher/inject-ga.ts:1
↓ 1 callersMethodisSourceReady
()
glitcher/engine.ts:33
↓ 1 callersFunctioniterationsEditor
(def: Def)
glitcher/ui/fx.ts:333
↓ 1 callersFunctionloadImageFromFileField
( event: Event, complete: (img: HTMLImageElement) => void, )
glitcher/ui/image.ts:4
↓ 1 callersFunctionloadLenna
(engine: Engine)
glitcher/index.ts:7
↓ 1 callersFunctionmakeDrawable
( // eslint-disable-next-line @typescript-eslint/no-explicit-any obj: any, )
libglitch/lib/makeDrawable.ts:1
↓ 1 callersFunctionmoduleList
(ctrl: UIState)
glitcher/ui/fx.ts:550
↓ 1 callersFunctionmoduleSelector
(ctrl: UIState)
glitcher/ui/fx.ts:8
↓ 1 callersFunctiononinit
(vnode: m.Vnode<unknown, UIState>, engine: Engine)
glitcher/ui.ts:10
↓ 1 callersFunctionrandomizeDef
(def: Def)
glitcher/util.ts:59
↓ 1 callersFunctionrangeSliders
(def: Def, paramName: string, paramDef: Parameter)
glitcher/ui/fx.ts:78
↓ 1 callersFunctionrefreshRow
(ctrl: UIState)
glitcher/ui/recorder.ts:28
↓ 1 callersMethodrenderLoop
()
glitcher/engine.ts:101
↓ 1 callersFunctionresizePrompt
(ctrl: UIState)
glitcher/ui/image.ts:25
↓ 1 callersFunctionresolveIterations
(def: Def)
glitcher/util.ts:30
↓ 1 callersFunctionresolveOptions
(def: Def)
glitcher/util.ts:36
↓ 1 callersFunctionrunSliceRep
( imageData: ImageData, startY: number, sliceHeight: number, repeats: number, )
libglitch/modules/slicerep.ts:5
↓ 1 callersFunctionrunTvScan
( imageData: ImageData, clock: number, speed: number, strength: number, heightPerc: number, )
libglitch/modules/tvscan.ts:11
↓ 1 callersFunctionsaveCurrentButton
(ctrl: UIState)
glitcher/ui/recorder.ts:7
↓ 1 callersMethodsaveIntoLocalStorage
(key = 'GlitcherState')
glitcher/State.ts:109
↓ 1 callersFunctionsliceoffset
( imageData: ImageData, y0: number, y1: number, offset: number, channelMask: number, blend: number
libglitch/modules/sliceglitch.ts:8
↓ 1 callersFunctionsortBy
(objects: T[], keyer: (i: T) => C)
libglitch/lib/sortBy.ts:1
↓ 1 callersFunctionstackBlurImageData
(imageData, top_x, top_y, width, height, radius)
libglitch/lib/stackBlurImageData.js:87
↓ 1 callersFunctionstartCamera
(ctrl: UIState)
glitcher/ui/image.ts:77
↓ 1 callersFunctiontitleUI
(ctrl: UIState)
glitcher/ui/title.ts:17
↓ 1 callersMethodtoURL
( type = 'image/png', encoderOptions?: number, forceDataUrl = false, )
glitcher/engine.ts:120
↓ 1 callersFunctionwrap
(num: number, max: number)
libglitch/lib/num.ts:5
FunctionBlurStack
()
libglitch/lib/stackBlurImageData.js:79
FunctionBool
* Boolean parameter. * @param name The name of the parameter. * @param options Options for the parameter. * @returns {*} Parameter definition objec
libglitch/param.ts:52
FunctionChoice
* Choice parameter. * @param name The name of the parameter. * @param choices Choices list * @param options Options for the parameter. * @returns
libglitch/param.ts:63
FunctionInt
* Integer parameter. * @param name The name of the parameter. * @param options Options for the parameter. * @returns {*} Parameter definition objec
libglitch/param.ts:35
FunctionNum
* Numeric (decimal) parameter. * @param name The name of the parameter. * @param options Options for the parameter. * @returns {*} Parameter defini
libglitch/param.ts:18
Functionafterimage
( glitchContext: GlitchContext, pOptions: Partial<AfterimageOptions>, )
libglitch/modules/afterimage.ts:11
Functionbirandint
(min: number, max: number)
libglitch/lib/rand.ts:5
Functionbitbang
( glitchContext: GlitchContext, pOptions: Partial<BitbangOptions>, )
libglitch/modules/bitbang.ts:50
Functionblockshuffle
( glitchContext: GlitchContext, pOptions: Partial<BlockShuffleOptions>, )
libglitch/modules/blockshuffle.ts:22
Functionbloom
(glitchContext: GlitchContext, pOptions: Partial<BloomOptions>)
libglitch/modules/bloom.ts:12
FunctionbufferLoad
( glitchContext: GlitchContext, pOptions: Partial<BufferLoadOptions>, )
libglitch/modules/buffer_load.ts:5
FunctionbufferSave
( glitchContext: GlitchContext, pOptions: Partial<BufferSaveOptions>, )
libglitch/modules/buffer_save.ts:9
FunctionchromaticAberrationAngular
( glitchContext: GlitchContext, pOptions: Partial<AngularOptions>, )
libglitch/modules/chromatic_aberration.ts:91
FunctionchromaticAberrationCartesian
( glitchContext: GlitchContext, pOptions: Partial<CartesianOptions>, )
libglitch/modules/chromatic_aberration.ts:146
FunctionconstantA
(a: number)
libglitch/lib/lerper.ts:3
FunctionconstantB
(a: number, b: number)
libglitch/lib/lerper.ts:4
Methodconstructor
(canvas: HTMLCanvasElement)
libglitch/GlitchContext.ts:12
next →1–100 of 135, ranked by callers