[{"data":1,"prerenderedAt":1689},["ShallowReactive",2],{"navigation_docs":3,"-runtime-playing-pipelines":271,"-runtime-playing-pipelines-surround":1684},[4,35,70,120,154,183,217,246,261],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Getting started","\u002Fgetting-started","1.getting-started",[9,14,19,24,29],{"title":10,"path":11,"stem":12,"icon":13},"What is ISF Studio","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Your first shader","\u002Fgetting-started\u002Ffirst-shader","1.getting-started\u002F3.first-shader","i-lucide-code-2",{"title":25,"path":26,"stem":27,"icon":28},"Your first pipeline","\u002Fgetting-started\u002Ffirst-pipeline","1.getting-started\u002F4.first-pipeline","i-lucide-workflow",{"title":30,"path":31,"stem":32,"icon":33},"Interface tour","\u002Fgetting-started\u002Finterface-tour","1.getting-started\u002F5.interface-tour","i-lucide-layout-panel-left",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Library","\u002Flibrary","2.library",[40,45,50,55,60,65],{"title":41,"path":42,"stem":43,"icon":44},"The explorer","\u002Flibrary\u002Fexplorer","2.library\u002F1.explorer","i-lucide-folder-tree",{"title":46,"path":47,"stem":48,"icon":49},"Organizing files","\u002Flibrary\u002Forganizing-files","2.library\u002F2.organizing-files","i-lucide-files",{"title":51,"path":52,"stem":53,"icon":54},"Images and gallery","\u002Flibrary\u002Fimages-and-gallery","2.library\u002F3.images-and-gallery","i-lucide-image",{"title":56,"path":57,"stem":58,"icon":59},"Sharing","\u002Flibrary\u002Fsharing","2.library\u002F4.sharing","i-lucide-package",{"title":61,"path":62,"stem":63,"icon":64},"Installing in software","\u002Flibrary\u002Finstalling-in-software","2.library\u002F5.installing-in-software","i-lucide-folder-input",{"title":66,"path":67,"stem":68,"icon":69},"OpenFX plug-ins","\u002Flibrary\u002Fopenfx-plugins","2.library\u002F6.openfx-plugins","i-lucide-plug",{"title":71,"path":72,"stem":73,"children":74,"page":34},"Shaders","\u002Fshaders","3.shaders",[75,80,85,90,95,100,105,110,115],{"title":76,"path":77,"stem":78,"icon":79},"The code editor","\u002Fshaders\u002Fcode-editor","3.shaders\u002F1.code-editor","i-lucide-square-code",{"title":81,"path":82,"stem":83,"icon":84},"The ISF header","\u002Fshaders\u002Fisf-header","3.shaders\u002F2.isf-header","i-lucide-braces",{"title":86,"path":87,"stem":88,"icon":89},"The preview","\u002Fshaders\u002Fpreview","3.shaders\u002F3.preview","i-lucide-monitor-play",{"title":91,"path":92,"stem":93,"icon":94},"Input controls","\u002Fshaders\u002Finput-controls","3.shaders\u002F4.input-controls","i-lucide-sliders-horizontal",{"title":96,"path":97,"stem":98,"icon":99},"Presets","\u002Fshaders\u002Fpresets","3.shaders\u002F5.presets","i-lucide-bookmark",{"title":101,"path":102,"stem":103,"icon":104},"Console and fixes","\u002Fshaders\u002Fconsole","3.shaders\u002F6.console","i-lucide-terminal",{"title":106,"path":107,"stem":108,"icon":109},"Shader templates","\u002Fshaders\u002Ftemplates","3.shaders\u002F7.templates","i-lucide-layout-template",{"title":111,"path":112,"stem":113,"icon":114},"Vertex shaders","\u002Fshaders\u002Fvertex-shaders","3.shaders\u002F8.vertex-shaders","i-lucide-shapes",{"title":116,"path":117,"stem":118,"icon":119},"Font images","\u002Fshaders\u002Ffont-images","3.shaders\u002F9.font-images","i-lucide-type",{"title":121,"path":122,"stem":123,"children":124,"page":34},"Pipelines","\u002Fpipelines","4.pipelines",[125,129,134,139,144,149],{"title":126,"path":127,"stem":128,"icon":28},"Concepts","\u002Fpipelines\u002Fconcepts","4.pipelines\u002F1.concepts",{"title":130,"path":131,"stem":132,"icon":133},"Editing a graph","\u002Fpipelines\u002Fediting-graphs","4.pipelines\u002F2.editing-graphs","i-lucide-mouse-pointer-click",{"title":135,"path":136,"stem":137,"icon":138},"Node catalog","\u002Fpipelines\u002Fnode-catalog","4.pipelines\u002F3.node-catalog","i-lucide-boxes",{"title":140,"path":141,"stem":142,"icon":143},"Toolbox and snippets","\u002Fpipelines\u002Fsnippets-and-toolbox","4.pipelines\u002F4.snippets-and-toolbox","i-lucide-toolbox",{"title":145,"path":146,"stem":147,"icon":148},"Composing","\u002Fpipelines\u002Fcomposing","4.pipelines\u002F5.composing","i-lucide-combine",{"title":150,"path":151,"stem":152,"icon":153},"Macros","\u002Fpipelines\u002Fmacros","4.pipelines\u002F6.macros","i-lucide-package-plus",{"title":155,"path":156,"stem":157,"children":158,"page":34},"Media and inputs","\u002Fmedia","5.media",[159,164,168,173,178],{"title":160,"path":161,"stem":162,"icon":163},"Resources","\u002Fmedia\u002Fresources","5.media\u002F1.resources","i-lucide-clapperboard",{"title":165,"path":166,"stem":167,"icon":163},"Export a video","\u002Fmedia\u002Fvideo-export","5.media\u002F2.video-export",{"title":169,"path":170,"stem":171,"icon":172},"Videos and sounds","\u002Fmedia\u002Fvideos-and-sounds","5.media\u002F3.videos-and-sounds","i-lucide-audio-lines",{"title":174,"path":175,"stem":176,"icon":177},"MIDI","\u002Fmedia\u002Fmidi","5.media\u002F4.midi","i-lucide-sliders-vertical",{"title":179,"path":180,"stem":181,"icon":182},"OSC","\u002Fmedia\u002Fosc","5.media\u002F5.osc","i-lucide-radio-tower",{"title":184,"path":185,"stem":186,"children":187,"page":34},"Workspace","\u002Fworkspace","6.workspace",[188,193,198,203,208,213],{"title":189,"path":190,"stem":191,"icon":192},"Tabs and layout","\u002Fworkspace\u002Ftabs-and-layout","6.workspace\u002F1.tabs-and-layout","i-lucide-columns-2",{"title":194,"path":195,"stem":196,"icon":197},"History and clipboard","\u002Fworkspace\u002Fhistory-and-clipboard","6.workspace\u002F2.history-and-clipboard","i-lucide-history",{"title":199,"path":200,"stem":201,"icon":202},"Saving and drafts","\u002Fworkspace\u002Fsaving","6.workspace\u002F3.saving","i-lucide-save",{"title":204,"path":205,"stem":206,"icon":207},"Shortcuts","\u002Fworkspace\u002Fshortcuts","6.workspace\u002F4.shortcuts","i-lucide-keyboard",{"title":209,"path":210,"stem":211,"icon":212},"Preferences","\u002Fworkspace\u002Fpreferences","6.workspace\u002F5.preferences","i-lucide-settings",{"title":56,"path":214,"stem":215,"icon":216},"\u002Fworkspace\u002Fsharing","6.workspace\u002F6.sharing","i-lucide-share-2",{"title":218,"path":219,"stem":220,"children":221,"page":34},"Reference","\u002Freference","7.reference",[222,226,231,236,241],{"title":223,"path":224,"stem":225,"icon":84},"ISF header","\u002Freference\u002Fisf-header-reference","7.reference\u002F1.isf-header-reference",{"title":227,"path":228,"stem":229,"icon":230},"File formats","\u002Freference\u002Ffile-formats","7.reference\u002F2.file-formats","i-lucide-file-archive",{"title":232,"path":233,"stem":234,"icon":235},"Troubleshooting","\u002Freference\u002Ftroubleshooting","7.reference\u002F3.troubleshooting","i-lucide-life-buoy",{"title":237,"path":238,"stem":239,"icon":240},"ISF specifications","\u002Freference\u002Fisf-specifications","7.reference\u002F4.isf-specifications","i-lucide-book-marked",{"title":242,"path":243,"stem":244,"icon":245},"Pipeline text","\u002Freference\u002Fpipeline-text","7.reference\u002F5.pipeline-text","i-lucide-bot-message-square",{"title":247,"path":248,"stem":249,"children":250,"page":34},"For developers","\u002Fruntime","8.runtime",[251,256],{"title":252,"path":253,"stem":254,"icon":255},"Playing pipelines and shaders","\u002Fruntime\u002Fplaying-pipelines","8.runtime\u002F1.playing-pipelines","i-lucide-play",{"title":257,"path":258,"stem":259,"icon":260},"Listening to sound","\u002Fruntime\u002Flistening-to-sound","8.runtime\u002F2.listening-to-sound","i-lucide-audio-waveform",{"title":262,"path":263,"stem":264,"children":265,"page":34},"Licensing","\u002Flicensing","9.licensing",[266],{"title":267,"path":268,"stem":269,"icon":270},"Pricing","\u002Flicensing\u002Fpricing","9.licensing\u002F1.pricing","i-lucide-badge-euro",{"id":272,"title":252,"body":273,"description":1677,"extension":1678,"links":1679,"meta":1680,"navigation":1681,"path":253,"seo":1682,"stem":254,"__hash__":1683},"docs\u002F8.runtime\u002F1.playing-pipelines.md",{"type":274,"value":275,"toc":1667},"minimark",[276,301,305,310,326,330,333,676,679,865,873,958,964,1047,1061,1073,1077,1252,1256,1327,1338,1378,1388,1392,1398,1465,1468,1501,1505,1508,1628,1663],[277,278,279,280,284,285,288,289,292,293,296,297,300],"p",{},"This page is for developers who want to use files made in ISF Studio in their own web projects. ",[281,282,283],"code",{},"IsfRenderer"," plays what you made in ISF Studio outside of it: a pipeline (",[281,286,287],{},".istpipe","), a shader bundle (",[281,290,291],{},".istshader","), or a plain ",[281,294,295],{},".fs"," with its ",[281,298,299],{},".vs",".",[302,303],"isf-pipeline-player",{"src":304},"\u002Fexamples\u002Fclouds.istpipe",[306,307,309],"h2",{"id":308},"install","Install",[311,312,317],"pre",{"className":313,"code":314,"language":315,"meta":316,"style":316},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install @isf-studio\u002Fisf-renderer\n","sh","",[281,318,319],{"__ignoreMap":316},[320,321,324],"span",{"class":322,"line":323},"line",1,[320,325,314],{},[306,327,329],{"id":328},"play","Play",[277,331,332],{},"Playing it takes a canvas and three calls (here with Vue):",[311,334,338],{"className":335,"code":336,"language":337,"meta":316,"style":316},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { IsfRenderer } from '@isf-studio\u002Fisf-renderer';\n\n\u002F\u002F Your pipeline (see Vite configuration below)\nimport pipeline from '@\u002Fassets\u002Fclouds.istpipe';\n\nconst canvas = ref\u003CHTMLCanvasElement>();\nlet renderer: IsfRenderer;\n\nonMounted(async () => {\n  renderer = new IsfRenderer();\n  renderer.bind(canvas.value!);\n  await renderer.load(pipeline);\n});\n\nonBeforeUnmount(() => renderer.dispose());\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Ccanvas ref=\"canvas\" \u002F>\n\u003C\u002Ftemplate>\n","vue",[281,339,340,372,404,411,418,438,443,472,488,493,514,532,560,582,592,597,621,631,636,646,667],{"__ignoreMap":316},[320,341,342,346,350,354,357,360,363,367,369],{"class":322,"line":323},[320,343,345],{"class":344},"sMK4o","\u003C",[320,347,349],{"class":348},"swJcz","script",[320,351,353],{"class":352},"spNyl"," setup",[320,355,356],{"class":352}," lang",[320,358,359],{"class":344},"=",[320,361,362],{"class":344},"\"",[320,364,366],{"class":365},"sfazB","ts",[320,368,362],{"class":344},[320,370,371],{"class":344},">\n",[320,373,375,379,382,386,389,392,395,398,401],{"class":322,"line":374},2,[320,376,378],{"class":377},"s7zQu","import",[320,380,381],{"class":344}," {",[320,383,385],{"class":384},"sTEyZ"," IsfRenderer",[320,387,388],{"class":344}," }",[320,390,391],{"class":377}," from",[320,393,394],{"class":344}," '",[320,396,397],{"class":365},"@isf-studio\u002Fisf-renderer",[320,399,400],{"class":344},"'",[320,402,403],{"class":344},";\n",[320,405,407],{"class":322,"line":406},3,[320,408,410],{"emptyLinePlaceholder":409},true,"\n",[320,412,414],{"class":322,"line":413},4,[320,415,417],{"class":416},"sHwdD","\u002F\u002F Your pipeline (see Vite configuration below)\n",[320,419,421,423,426,429,431,434,436],{"class":322,"line":420},5,[320,422,378],{"class":377},[320,424,425],{"class":384}," pipeline ",[320,427,428],{"class":377},"from",[320,430,394],{"class":344},[320,432,433],{"class":365},"@\u002Fassets\u002Fclouds.istpipe",[320,435,400],{"class":344},[320,437,403],{"class":344},[320,439,441],{"class":322,"line":440},6,[320,442,410],{"emptyLinePlaceholder":409},[320,444,446,449,452,454,458,460,464,467,470],{"class":322,"line":445},7,[320,447,448],{"class":352},"const",[320,450,451],{"class":384}," canvas ",[320,453,359],{"class":344},[320,455,457],{"class":456},"s2Zo4"," ref",[320,459,345],{"class":344},[320,461,463],{"class":462},"sBMFI","HTMLCanvasElement",[320,465,466],{"class":344},">",[320,468,469],{"class":384},"()",[320,471,403],{"class":344},[320,473,475,478,481,484,486],{"class":322,"line":474},8,[320,476,477],{"class":352},"let",[320,479,480],{"class":384}," renderer",[320,482,483],{"class":344},":",[320,485,385],{"class":462},[320,487,403],{"class":344},[320,489,491],{"class":322,"line":490},9,[320,492,410],{"emptyLinePlaceholder":409},[320,494,496,499,502,505,508,511],{"class":322,"line":495},10,[320,497,498],{"class":456},"onMounted",[320,500,501],{"class":384},"(",[320,503,504],{"class":352},"async",[320,506,507],{"class":344}," ()",[320,509,510],{"class":352}," =>",[320,512,513],{"class":344}," {\n",[320,515,517,520,523,526,528,530],{"class":322,"line":516},11,[320,518,519],{"class":384},"  renderer",[320,521,522],{"class":344}," =",[320,524,525],{"class":344}," new",[320,527,385],{"class":456},[320,529,469],{"class":348},[320,531,403],{"class":344},[320,533,535,537,539,542,544,547,549,552,555,558],{"class":322,"line":534},12,[320,536,519],{"class":384},[320,538,300],{"class":344},[320,540,541],{"class":456},"bind",[320,543,501],{"class":348},[320,545,546],{"class":384},"canvas",[320,548,300],{"class":344},[320,550,551],{"class":384},"value",[320,553,554],{"class":344},"!",[320,556,557],{"class":348},")",[320,559,403],{"class":344},[320,561,563,566,568,570,573,575,578,580],{"class":322,"line":562},13,[320,564,565],{"class":377},"  await",[320,567,480],{"class":384},[320,569,300],{"class":344},[320,571,572],{"class":456},"load",[320,574,501],{"class":348},[320,576,577],{"class":384},"pipeline",[320,579,557],{"class":348},[320,581,403],{"class":344},[320,583,585,588,590],{"class":322,"line":584},14,[320,586,587],{"class":344},"}",[320,589,557],{"class":384},[320,591,403],{"class":344},[320,593,595],{"class":322,"line":594},15,[320,596,410],{"emptyLinePlaceholder":409},[320,598,600,603,605,607,609,611,613,616,619],{"class":322,"line":599},16,[320,601,602],{"class":456},"onBeforeUnmount",[320,604,501],{"class":384},[320,606,469],{"class":344},[320,608,510],{"class":352},[320,610,480],{"class":384},[320,612,300],{"class":344},[320,614,615],{"class":456},"dispose",[320,617,618],{"class":384},"())",[320,620,403],{"class":344},[320,622,624,627,629],{"class":322,"line":623},17,[320,625,626],{"class":344},"\u003C\u002F",[320,628,349],{"class":348},[320,630,371],{"class":344},[320,632,634],{"class":322,"line":633},18,[320,635,410],{"emptyLinePlaceholder":409},[320,637,639,641,644],{"class":322,"line":638},19,[320,640,345],{"class":344},[320,642,643],{"class":348},"template",[320,645,371],{"class":344},[320,647,649,652,654,656,658,660,662,664],{"class":322,"line":648},20,[320,650,651],{"class":344},"  \u003C",[320,653,546],{"class":348},[320,655,457],{"class":352},[320,657,359],{"class":344},[320,659,362],{"class":344},[320,661,546],{"class":365},[320,663,362],{"class":344},[320,665,666],{"class":344}," \u002F>\n",[320,668,670,672,674],{"class":322,"line":669},21,[320,671,626],{"class":344},[320,673,643],{"class":348},[320,675,371],{"class":344},[277,677,678],{},"In vanilla JavaScript, you would do something like this:",[311,680,684],{"className":681,"code":682,"language":683,"meta":316,"style":316},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Ccanvas id=\"canvas\">\u003C\u002Fcanvas>\n\u003Cscript type=\"module\">\nimport { IsfRenderer } from '@isf-studio\u002Fisf-renderer';\n\nconst canvas = document.getElementById('canvas');\nconst renderer = new IsfRenderer();\nrenderer.bind(canvas);\nawait renderer.load('\u002Fexamples\u002Fclouds.istpipe');\n\n\u002F\u002F Then when you're done\nrenderer.dispose();\n\u003C\u002Fscript>\n","html",[281,685,686,710,730,750,754,782,799,813,836,840,845,857],{"__ignoreMap":316},[320,687,688,690,692,695,697,699,701,703,706,708],{"class":322,"line":323},[320,689,345],{"class":344},[320,691,546],{"class":348},[320,693,694],{"class":352}," id",[320,696,359],{"class":344},[320,698,362],{"class":344},[320,700,546],{"class":365},[320,702,362],{"class":344},[320,704,705],{"class":344},">\u003C\u002F",[320,707,546],{"class":348},[320,709,371],{"class":344},[320,711,712,714,716,719,721,723,726,728],{"class":322,"line":374},[320,713,345],{"class":344},[320,715,349],{"class":348},[320,717,718],{"class":352}," type",[320,720,359],{"class":344},[320,722,362],{"class":344},[320,724,725],{"class":365},"module",[320,727,362],{"class":344},[320,729,371],{"class":344},[320,731,732,734,736,738,740,742,744,746,748],{"class":322,"line":406},[320,733,378],{"class":377},[320,735,381],{"class":344},[320,737,385],{"class":384},[320,739,388],{"class":344},[320,741,391],{"class":377},[320,743,394],{"class":344},[320,745,397],{"class":365},[320,747,400],{"class":344},[320,749,403],{"class":344},[320,751,752],{"class":322,"line":413},[320,753,410],{"emptyLinePlaceholder":409},[320,755,756,758,760,762,765,767,770,772,774,776,778,780],{"class":322,"line":420},[320,757,448],{"class":352},[320,759,451],{"class":384},[320,761,359],{"class":344},[320,763,764],{"class":384}," document",[320,766,300],{"class":344},[320,768,769],{"class":456},"getElementById",[320,771,501],{"class":384},[320,773,400],{"class":344},[320,775,546],{"class":365},[320,777,400],{"class":344},[320,779,557],{"class":384},[320,781,403],{"class":344},[320,783,784,786,789,791,793,795,797],{"class":322,"line":440},[320,785,448],{"class":352},[320,787,788],{"class":384}," renderer ",[320,790,359],{"class":344},[320,792,525],{"class":344},[320,794,385],{"class":456},[320,796,469],{"class":384},[320,798,403],{"class":344},[320,800,801,804,806,808,811],{"class":322,"line":445},[320,802,803],{"class":384},"renderer",[320,805,300],{"class":344},[320,807,541],{"class":456},[320,809,810],{"class":384},"(canvas)",[320,812,403],{"class":344},[320,814,815,818,820,822,824,826,828,830,832,834],{"class":322,"line":474},[320,816,817],{"class":377},"await",[320,819,480],{"class":384},[320,821,300],{"class":344},[320,823,572],{"class":456},[320,825,501],{"class":384},[320,827,400],{"class":344},[320,829,304],{"class":365},[320,831,400],{"class":344},[320,833,557],{"class":384},[320,835,403],{"class":344},[320,837,838],{"class":322,"line":490},[320,839,410],{"emptyLinePlaceholder":409},[320,841,842],{"class":322,"line":495},[320,843,844],{"class":416},"\u002F\u002F Then when you're done\n",[320,846,847,849,851,853,855],{"class":322,"line":516},[320,848,803],{"class":384},[320,850,300],{"class":344},[320,852,615],{"class":456},[320,854,469],{"class":384},[320,856,403],{"class":344},[320,858,859,861,863],{"class":322,"line":534},[320,860,626],{"class":344},[320,862,349],{"class":348},[320,864,371],{"class":344},[306,866,868,869,872],{"id":867},"what-load-takes","What ",[281,870,871],{},"load()"," takes",[874,875,876,889],"table",{},[877,878,879],"thead",{},[880,881,882,886],"tr",{},[883,884,885],"th",{},"You give",[883,887,888],{},"It plays",[890,891,892,903,913,922,941],"tbody",{},[880,893,894,900],{},[895,896,897,898],"td",{},"The URL of a ",[281,899,287],{},[895,901,902],{},"The shader the pipeline compiled to, with the images it carries.",[880,904,905,910],{},[895,906,907,908],{},"The URL or the bytes of a ",[281,909,291],{},[895,911,912],{},"The shader, its vertex shader and its images.",[880,914,915,919],{},[895,916,897,917],{},[281,918,295],{},[895,920,921],{},"The shader; its images are looked for beside it.",[880,923,924,927],{},[895,925,926],{},"The text of a fragment shader",[895,928,929,930,933,934,937,938,300],{},"The shader. It spans lines, or starts with ",[281,931,932],{},"\u002F*",", ",[281,935,936],{},"\u002F\u002F"," or ",[281,939,940],{},"#",[880,942,943,955],{},[895,944,945,946,933,949,933,952],{},"The bytes: ",[281,947,948],{},"Blob",[281,950,951],{},"ArrayBuffer",[281,953,954],{},"Uint8Array",[895,956,957],{},"Any of the above.",[277,959,960,961,963],{},"A ",[281,962,295],{}," takes its vertex shader and its images by option:",[311,965,968],{"className":966,"code":967,"language":366,"meta":316,"style":316},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","await renderer.load('\u002Fshaders\u002Fwave.fs', {\n  vertex: '\u002Fshaders\u002Fwave.vs',\n  images: { 'imported\u002Fnoise.png': '\u002Fimages\u002Fnoise.png' },\n});\n",[281,969,970,994,1011,1039],{"__ignoreMap":316},[320,971,972,974,976,978,980,982,984,987,989,992],{"class":322,"line":323},[320,973,817],{"class":377},[320,975,480],{"class":384},[320,977,300],{"class":344},[320,979,572],{"class":456},[320,981,501],{"class":384},[320,983,400],{"class":344},[320,985,986],{"class":365},"\u002Fshaders\u002Fwave.fs",[320,988,400],{"class":344},[320,990,991],{"class":344},",",[320,993,513],{"class":344},[320,995,996,999,1001,1003,1006,1008],{"class":322,"line":374},[320,997,998],{"class":348},"  vertex",[320,1000,483],{"class":344},[320,1002,394],{"class":344},[320,1004,1005],{"class":365},"\u002Fshaders\u002Fwave.vs",[320,1007,400],{"class":344},[320,1009,1010],{"class":344},",\n",[320,1012,1013,1016,1018,1020,1022,1025,1027,1029,1031,1034,1036],{"class":322,"line":406},[320,1014,1015],{"class":348},"  images",[320,1017,483],{"class":344},[320,1019,381],{"class":344},[320,1021,394],{"class":344},[320,1023,1024],{"class":348},"imported\u002Fnoise.png",[320,1026,400],{"class":344},[320,1028,483],{"class":344},[320,1030,394],{"class":344},[320,1032,1033],{"class":365},"\u002Fimages\u002Fnoise.png",[320,1035,400],{"class":344},[320,1037,1038],{"class":344}," },\n",[320,1040,1041,1043,1045],{"class":322,"line":413},[320,1042,587],{"class":344},[320,1044,557],{"class":384},[320,1046,403],{"class":344},[277,1048,1049,1050,1053,1054,1057,1058,1060],{},"An image that the shader imports is looked for in ",[281,1051,1052],{},"options.images"," (by its ",[281,1055,1056],{},"PATH"," or its name), then in the archive, then beside the ",[281,1059,295],{}," it was fetched from.",[1062,1063,1064,1065,1069,1070,1072],"note",{},"A pipeline plays the shader it was ",[1066,1067,1068],"strong",{},"compiled to",". Open the pipeline in ISF Studio and save it once if ",[281,1071,871],{}," says it holds no compiled shader.",[306,1074,1076],{"id":1075},"setting-inputs","Setting inputs",[311,1078,1080],{"className":966,"code":1079,"language":366,"meta":316,"style":316},"renderer.inputs.map((input) => input.NAME); \u002F\u002F ['speed', 'bands', 'tint']\nrenderer.set('speed', 0.8);\nrenderer.set('tint', [1, 0.4, 0.2, 1]);\nrenderer.set('picture', imageBlob); \u002F\u002F an image input takes a URL or a Blob\nrenderer.set('flash', true); \u002F\u002F fires an event, once\n",[281,1081,1082,1122,1150,1195,1222],{"__ignoreMap":316},[320,1083,1084,1086,1088,1091,1093,1096,1098,1100,1104,1106,1108,1111,1113,1116,1119],{"class":322,"line":323},[320,1085,803],{"class":384},[320,1087,300],{"class":344},[320,1089,1090],{"class":384},"inputs",[320,1092,300],{"class":344},[320,1094,1095],{"class":456},"map",[320,1097,501],{"class":384},[320,1099,501],{"class":344},[320,1101,1103],{"class":1102},"sHdIc","input",[320,1105,557],{"class":344},[320,1107,510],{"class":352},[320,1109,1110],{"class":384}," input",[320,1112,300],{"class":344},[320,1114,1115],{"class":384},"NAME)",[320,1117,1118],{"class":344},";",[320,1120,1121],{"class":416}," \u002F\u002F ['speed', 'bands', 'tint']\n",[320,1123,1124,1126,1128,1131,1133,1135,1138,1140,1142,1146,1148],{"class":322,"line":374},[320,1125,803],{"class":384},[320,1127,300],{"class":344},[320,1129,1130],{"class":456},"set",[320,1132,501],{"class":384},[320,1134,400],{"class":344},[320,1136,1137],{"class":365},"speed",[320,1139,400],{"class":344},[320,1141,991],{"class":344},[320,1143,1145],{"class":1144},"sbssI"," 0.8",[320,1147,557],{"class":384},[320,1149,403],{"class":344},[320,1151,1152,1154,1156,1158,1160,1162,1165,1167,1169,1172,1175,1177,1180,1182,1185,1187,1190,1193],{"class":322,"line":406},[320,1153,803],{"class":384},[320,1155,300],{"class":344},[320,1157,1130],{"class":456},[320,1159,501],{"class":384},[320,1161,400],{"class":344},[320,1163,1164],{"class":365},"tint",[320,1166,400],{"class":344},[320,1168,991],{"class":344},[320,1170,1171],{"class":384}," [",[320,1173,1174],{"class":1144},"1",[320,1176,991],{"class":344},[320,1178,1179],{"class":1144}," 0.4",[320,1181,991],{"class":344},[320,1183,1184],{"class":1144}," 0.2",[320,1186,991],{"class":344},[320,1188,1189],{"class":1144}," 1",[320,1191,1192],{"class":384},"])",[320,1194,403],{"class":344},[320,1196,1197,1199,1201,1203,1205,1207,1210,1212,1214,1217,1219],{"class":322,"line":413},[320,1198,803],{"class":384},[320,1200,300],{"class":344},[320,1202,1130],{"class":456},[320,1204,501],{"class":384},[320,1206,400],{"class":344},[320,1208,1209],{"class":365},"picture",[320,1211,400],{"class":344},[320,1213,991],{"class":344},[320,1215,1216],{"class":384}," imageBlob)",[320,1218,1118],{"class":344},[320,1220,1221],{"class":416}," \u002F\u002F an image input takes a URL or a Blob\n",[320,1223,1224,1226,1228,1230,1232,1234,1237,1239,1241,1245,1247,1249],{"class":322,"line":420},[320,1225,803],{"class":384},[320,1227,300],{"class":344},[320,1229,1130],{"class":456},[320,1231,501],{"class":384},[320,1233,400],{"class":344},[320,1235,1236],{"class":365},"flash",[320,1238,400],{"class":344},[320,1240,991],{"class":344},[320,1242,1244],{"class":1243},"sfNiH"," true",[320,1246,557],{"class":384},[320,1248,1118],{"class":344},[320,1250,1251],{"class":416}," \u002F\u002F fires an event, once\n",[306,1253,1255],{"id":1254},"playing-pausing-cleaning-up","Playing, pausing, cleaning up",[311,1257,1259],{"className":966,"code":1258,"language":366,"meta":316,"style":316},"renderer.pause();\nrenderer.play();\nrenderer.setSize(1280, 720); \u002F\u002F the size it draws at; no argument follows the canvas\nrenderer.dispose(); \u002F\u002F lets go of the canvas, WebGL and the image URLs\n",[281,1260,1261,1274,1286,1312],{"__ignoreMap":316},[320,1262,1263,1265,1267,1270,1272],{"class":322,"line":323},[320,1264,803],{"class":384},[320,1266,300],{"class":344},[320,1268,1269],{"class":456},"pause",[320,1271,469],{"class":384},[320,1273,403],{"class":344},[320,1275,1276,1278,1280,1282,1284],{"class":322,"line":374},[320,1277,803],{"class":384},[320,1279,300],{"class":344},[320,1281,328],{"class":456},[320,1283,469],{"class":384},[320,1285,403],{"class":344},[320,1287,1288,1290,1292,1295,1297,1300,1302,1305,1307,1309],{"class":322,"line":406},[320,1289,803],{"class":384},[320,1291,300],{"class":344},[320,1293,1294],{"class":456},"setSize",[320,1296,501],{"class":384},[320,1298,1299],{"class":1144},"1280",[320,1301,991],{"class":344},[320,1303,1304],{"class":1144}," 720",[320,1306,557],{"class":384},[320,1308,1118],{"class":344},[320,1310,1311],{"class":416}," \u002F\u002F the size it draws at; no argument follows the canvas\n",[320,1313,1314,1316,1318,1320,1322,1324],{"class":322,"line":413},[320,1315,803],{"class":384},[320,1317,300],{"class":344},[320,1319,615],{"class":456},[320,1321,469],{"class":384},[320,1323,1118],{"class":344},[320,1325,1326],{"class":416}," \u002F\u002F lets go of the canvas, WebGL and the image URLs\n",[277,1328,1329,1330,1333,1334,1337],{},"The alpha of the picture is left out, so a shader that never writes it (most from Shadertoy) still shows. ",[281,1331,1332],{},"new IsfRenderer({ opaque: false })",", or ",[281,1335,1336],{},"renderer.setOpaque(false)",", keeps it: a transparent shader then lets what is behind the canvas through.",[311,1339,1341],{"className":966,"code":1340,"language":366,"meta":316,"style":316},"renderer.stats().fps; \u002F\u002F what the last frames cost\nrenderer.info; \u002F\u002F { description, credit, categories } from the header of the shader\n",[281,1342,1343,1364],{"__ignoreMap":316},[320,1344,1345,1347,1349,1352,1354,1356,1359,1361],{"class":322,"line":323},[320,1346,803],{"class":384},[320,1348,300],{"class":344},[320,1350,1351],{"class":456},"stats",[320,1353,469],{"class":384},[320,1355,300],{"class":344},[320,1357,1358],{"class":384},"fps",[320,1360,1118],{"class":344},[320,1362,1363],{"class":416}," \u002F\u002F what the last frames cost\n",[320,1365,1366,1368,1370,1373,1375],{"class":322,"line":374},[320,1367,803],{"class":384},[320,1369,300],{"class":344},[320,1371,1372],{"class":384},"info",[320,1374,1118],{"class":344},[320,1376,1377],{"class":416}," \u002F\u002F { description, credit, categories } from the header of the shader\n",[277,1379,1380,1381,1383,1384,1387],{},"A shader that does not compile rejects ",[281,1382,871],{}," with the compiler's message. ",[281,1385,1386],{},"renderer.onError"," is told about a pass that fails while it draws.",[306,1389,1391],{"id":1390},"with-vite","With Vite",[277,1393,1394,1397],{},[281,1395,1396],{},"import pipeline from '.\u002Fclouds.istpipe'"," needs the plugin that makes Vite treat these files as assets:",[311,1399,1402],{"className":966,"code":1400,"filename":1401,"language":366,"meta":316,"style":316},"import { isfAssets } from '@isf-studio\u002Fisf-renderer\u002Fvite';\n\nexport default defineConfig({ plugins: [isfAssets()] });\n","vite.config.ts",[281,1403,1404,1426,1430],{"__ignoreMap":316},[320,1405,1406,1408,1410,1413,1415,1417,1419,1422,1424],{"class":322,"line":323},[320,1407,378],{"class":377},[320,1409,381],{"class":344},[320,1411,1412],{"class":384}," isfAssets",[320,1414,388],{"class":344},[320,1416,391],{"class":377},[320,1418,394],{"class":344},[320,1420,1421],{"class":365},"@isf-studio\u002Fisf-renderer\u002Fvite",[320,1423,400],{"class":344},[320,1425,403],{"class":344},[320,1427,1428],{"class":322,"line":374},[320,1429,410],{"emptyLinePlaceholder":409},[320,1431,1432,1435,1438,1441,1443,1446,1449,1451,1453,1456,1459,1461,1463],{"class":322,"line":406},[320,1433,1434],{"class":377},"export",[320,1436,1437],{"class":377}," default",[320,1439,1440],{"class":456}," defineConfig",[320,1442,501],{"class":384},[320,1444,1445],{"class":344},"{",[320,1447,1448],{"class":348}," plugins",[320,1450,483],{"class":344},[320,1452,1171],{"class":384},[320,1454,1455],{"class":456},"isfAssets",[320,1457,1458],{"class":384},"()] ",[320,1460,587],{"class":344},[320,1462,557],{"class":384},[320,1464,403],{"class":344},[277,1466,1467],{},"And, once, for TypeScript:",[311,1469,1472],{"className":966,"code":1470,"filename":1471,"language":366,"meta":316,"style":316},"\u002F\u002F\u002F \u003Creference types=\"@isf-studio\u002Fisf-renderer\u002Fassets\" \u002F>\n","env.d.ts",[281,1473,1474],{"__ignoreMap":316},[320,1475,1476,1479,1481,1485,1489,1491,1493,1497,1499],{"class":322,"line":323},[320,1477,1478],{"class":416},"\u002F\u002F\u002F ",[320,1480,345],{"class":377},[320,1482,1484],{"class":1483},"s5tWE","reference",[320,1486,1488],{"class":1487},"s6hCs"," types",[320,1490,359],{"class":377},[320,1492,362],{"class":377},[320,1494,1496],{"class":1495},"smbvS","@isf-studio\u002Fisf-renderer\u002Fassets",[320,1498,362],{"class":377},[320,1500,666],{"class":377},[306,1502,1504],{"id":1503},"the-player-as-a-vue-component","The player, as a Vue component",[277,1506,1507],{},"The players of this page are a component of Vue 3 that comes with the package: the canvas, the bar, the panel of the inputs and the sound, ready to use.",[311,1509,1511],{"className":335,"code":1510,"language":337,"meta":316,"style":316},"\u003Cscript setup lang=\"ts\">\nimport { IsfPlayer } from '@isf-studio\u002Fisf-renderer\u002Fvue';\nimport '@isf-studio\u002Fisf-renderer\u002Fvue.css';\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CIsfPlayer src=\"\u002Fexamples\u002Fclouds.istpipe\" title=\"Clouds\" \u002F>\n\u003C\u002Ftemplate>\n",[281,1512,1513,1533,1555,1568,1576,1580,1588,1620],{"__ignoreMap":316},[320,1514,1515,1517,1519,1521,1523,1525,1527,1529,1531],{"class":322,"line":323},[320,1516,345],{"class":344},[320,1518,349],{"class":348},[320,1520,353],{"class":352},[320,1522,356],{"class":352},[320,1524,359],{"class":344},[320,1526,362],{"class":344},[320,1528,366],{"class":365},[320,1530,362],{"class":344},[320,1532,371],{"class":344},[320,1534,1535,1537,1539,1542,1544,1546,1548,1551,1553],{"class":322,"line":374},[320,1536,378],{"class":377},[320,1538,381],{"class":344},[320,1540,1541],{"class":384}," IsfPlayer",[320,1543,388],{"class":344},[320,1545,391],{"class":377},[320,1547,394],{"class":344},[320,1549,1550],{"class":365},"@isf-studio\u002Fisf-renderer\u002Fvue",[320,1552,400],{"class":344},[320,1554,403],{"class":344},[320,1556,1557,1559,1561,1564,1566],{"class":322,"line":406},[320,1558,378],{"class":377},[320,1560,394],{"class":344},[320,1562,1563],{"class":365},"@isf-studio\u002Fisf-renderer\u002Fvue.css",[320,1565,400],{"class":344},[320,1567,403],{"class":344},[320,1569,1570,1572,1574],{"class":322,"line":413},[320,1571,626],{"class":344},[320,1573,349],{"class":348},[320,1575,371],{"class":344},[320,1577,1578],{"class":322,"line":420},[320,1579,410],{"emptyLinePlaceholder":409},[320,1581,1582,1584,1586],{"class":322,"line":440},[320,1583,345],{"class":344},[320,1585,643],{"class":348},[320,1587,371],{"class":344},[320,1589,1590,1592,1595,1598,1600,1602,1604,1606,1609,1611,1613,1616,1618],{"class":322,"line":445},[320,1591,651],{"class":344},[320,1593,1594],{"class":348},"IsfPlayer",[320,1596,1597],{"class":352}," src",[320,1599,359],{"class":344},[320,1601,362],{"class":344},[320,1603,304],{"class":365},[320,1605,362],{"class":344},[320,1607,1608],{"class":352}," title",[320,1610,359],{"class":344},[320,1612,362],{"class":344},[320,1614,1615],{"class":365},"Clouds",[320,1617,362],{"class":344},[320,1619,666],{"class":344},[320,1621,1622,1624,1626],{"class":322,"line":474},[320,1623,626],{"class":344},[320,1625,643],{"class":348},[320,1627,371],{"class":344},[277,1629,1630,1631,933,1634,933,1637,933,1640,933,1643,933,1646,933,1649,933,1652,1655,1656,300],{},"Its props (",[281,1632,1633],{},"vertex",[281,1635,1636],{},"images",[281,1638,1639],{},"ratio",[281,1641,1642],{},"autoplay",[281,1644,1645],{},"clickToPlay",[281,1647,1648],{},"controls",[281,1650,1651],{},"open",[281,1653,1654],{},"sounds",") and its events are in the ",[1657,1658,1662],"a",{"href":1659,"rel":1660},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@isf-studio\u002Fisf-renderer#a-vue-component",[1661],"nofollow","README of the package",[1664,1665,1666],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .s5tWE, html code.shiki .s5tWE{--shiki-light:#E53935;--shiki-light-font-style:italic;--shiki-default:#F07178;--shiki-default-font-style:italic;--shiki-dark:#F07178;--shiki-dark-font-style:italic}html pre.shiki code .s6hCs, html code.shiki .s6hCs{--shiki-light:#9C3EDA;--shiki-light-font-style:italic;--shiki-default:#C792EA;--shiki-default-font-style:italic;--shiki-dark:#C792EA;--shiki-dark-font-style:italic}html pre.shiki code .smbvS, html code.shiki .smbvS{--shiki-light:#91B859;--shiki-light-font-style:italic;--shiki-default:#C3E88D;--shiki-default-font-style:italic;--shiki-dark:#C3E88D;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":316,"searchDepth":374,"depth":374,"links":1668},[1669,1670,1671,1673,1674,1675,1676],{"id":308,"depth":374,"text":309},{"id":328,"depth":374,"text":329},{"id":867,"depth":374,"text":1672},"What load() takes",{"id":1075,"depth":374,"text":1076},{"id":1254,"depth":374,"text":1255},{"id":1390,"depth":374,"text":1391},{"id":1503,"depth":374,"text":1504},"Play a pipeline, a shader bundle or a .fs\u002F.vs pair on a canvas, in any web page, with IsfRenderer.","md",null,{},{"icon":255,"title":252},{"title":252,"description":1677},"TQrUDA6spNYvWDpcbNI91tI4n9T3ZuE6k70zY02JPpk",[1685,1687],{"title":242,"path":243,"stem":244,"description":1686,"icon":245,"children":-1},"A pipeline written as text, to ask an assistant about it: how to copy it, and the format it is written in.",{"title":257,"path":258,"stem":259,"description":1688,"icon":260,"children":-1},"Give the audio and audioFFT inputs of a shader a sound or a microphone in your own page, with IsfRenderer.listen().",1796047425738]