元編程參考文件

應用框架

可用

Glaze 即時應用,以及 Ol'ista Web 伺服器與 Web 應用

Methodox Wiki 上的使用指南

17 個類別,共 208 個節點

所屬發行版
元編程(教育版)元編程(專業版)
支援等級
第 1 級(擬定)
所屬包
網路應用 Glaze 即時 事件應用
網路應用

使用 Ol'ista 提供網頁與 Web API 服務,以圖實現處理程式,並請求網路服務。

Glaze 即時

主要面向二維圖形的即時互動媒體框架:提供繪製迴圈、精靈、輸入對映等,適用於遊戲與模擬。

事件應用

提供啟動事件與事件圖的執行時——事件驅動的文件需要它。

即時應用

即時應用清屏關閉麥克風繪製圓弧繪製圓繪製橢圓繪製漸層A rectangle shaded smoothly from one colour to another, top to bottom or left to right: a sky, a fade, a highlight.繪製影像繪製直線繪製多邊形繪製折線A line through several points, joined smoothly: a path traced between two tiles, a trail behind a comet, a graph.繪製四邊形繪製矩形繪製圓角矩形A rectangle with rounded corners: a button, a panel, a card.繪製精靈繪製文字繪製平鋪影像An image repeated across a rectangle, shifted by an offset: a texture of grain or cloth, a scrolling background.音訊輸出Where this application's sound comes out.音訊輸出(如已連線)The audio output if one was attached, and null if this run has been silent.已請求關閉Whether the application has asked to stop.游標可見Whether the application wants a cursor shown.除錯中Whether the application draws its own frame-rate readout.期望的背景顏色What Clear paints when it is given no colour of its own.Desired Frame RateThe frame rate the application asks for, in hertz; 0, the default, for as fast as the display allows.期望的視窗大小The size the application wants.期望的視窗標題The window's title.已用時間Milliseconds the last frame took.幀緩衝區The pixels.輸入Where the pointer is and which keys are down.在更新迴圈中Whether a frame is being drawn.是否正在光柵化Whether this window rasterizes, or merely records.請求的游標What cursor the application would like.輸出端Where drawing goes: the framebuffer's rasterizer by default, or whatever was composed in.儲存Per-run storage a node can keep something in, cleared when a run starts.取得實際視窗大小取得已用時間取得滑鼠按鍵狀態取得滑鼠位置取得錄音裝置The recording devices on this machine, by name, for Open Microphone.取得聲音電平How loud the sound is now: 0 for silence, 1 for a sine at full scale, over the newest 2048 samples, about 45 ms - what a level meter shows.取得聲音訊譜How loud each part of the sound is now, from the bass on the left to the treble on the right: bands spaced evenly in pitch from 40 Hz to 16 kHz, each 0 at -60 dB or quieter and 1 at full scale - the bars of a spectrum visualizer.取得聲音波形The newest samples of the sound, oldest first, for an oscilloscope to draw: each -1 to 1.取得儲存取得視窗大小Get design-time or specified window size.隱藏游標按鍵是否按下聲音是否在播放建立精靈開啟麥克風Starts listening to a microphone, so the measuring nodes can hear it: pass what this returns as their Microphone.播放片段Plays a clip from memory - one the audio nodes made, generated rather than recorded.播放音樂Plays a music file, looping by default: WAV, OGG/Vorbis, FLAC or MP3.播放訊號Plays a signal, synthesized as it plays, until it is stopped: the same on both sides.播放音效Plays a sound file once: WAV, OGG/Vorbis, FLAC or MP3.播放立體聲訊號Plays a stereo signal - a panned voice, a stereo reverb or chorus - synthesized as it plays, until it is stopped.呈現Make sure every draw has reached the pixels, then answer them.請求關閉Ask to stop after this frame.設定游標設定幀率Paces the frames at a steady rate, so every frame's delta is the same and motion is smooth: 60 for most games, 120 for a fast one; 0 for as fast as the display allows.設定迴圈設定總音量The volume of everything at once, on top of each sound's own: a game's volume setting.設定聲像設定音高設定音量設定視窗背景設定視窗大小設定視窗標題Set the window's title.顯示游標顯示除錯資訊精靈碰撞停止所有聲音Stops everything playing, fading it out over some seconds.停止聲音Stops a sound, fading it out over some seconds; 0 stops it at once.已初始化Window is created.按鍵按下A key went down.Key UpA key came back up.Mouse DownA pointer button went down - a click begins, a drag starts.Mouse UpA pointer button came back up - a click ends, a drag drops.啟動Divooka procedural program entry, equivalent to "Main" in many programming language.更新Called once per frame.

資料庫結果

Ol'ista 網站構建器

Web 應用開發

建立 Web 應用一個還沒有端點的新 Web 應用。對映 DELETE用一個函數應答某個路由上的 DELETE 請求。對映回退應答所有沒有端點或檔案應答的請求——例如 404 頁面,或單頁應用的首頁。對映 GET用一個函數應答某個路由上的 GET 請求:/todos/{id} 會填入名為 Id 的輸入。對映分組把另一個應用的端點放到一個字首(如 /api)之下,與 ASP.NET Core 的路由組相同:先在單獨的應用中建好分組的端點(如需金鑰,也在那裡要求),再對映該分組。對映多種方法用同一個函數應答某個路由上多種方法的請求——HEAD、OPTIONS 或其他任何方法。對映 PATCH用一個函數應答某個路由上的 PATCH 請求。對映 POST用一個函數應答某個路由上的 POST 請求;記錄或類型別的輸入從 JSON 正文讀取,簡單輸入從正文的欄位或表單讀取。對映 PUT用一個函數應答某個路由上的 PUT 請求。要求 API 金鑰為目前已對映的每個端點要求金鑰:沒有該標頭或金鑰不符的請求以 401 應答。執行執行應用,直到程式結束——以提供服務為任務的程式的最後一步。啟動在後臺啟動應用,並立即返回它應答的地址——適用於把提供服務作為其中一步、呼叫自身、然後停止的程式;執行超過“最長秒數”後會自行停止。停止停止由“啟動”啟動的應用並釋放其埠;停止一個已經停止的應用不會做任何事。啟用 CORS允許其他網站的頁面在瀏覽器中呼叫此應用(CORS):列出允許的來源,或用 * 表示任何來源。啟用 OpenAPI根據應用的路由及其處理函數的輸入,在一個路徑上用 OpenAPI 3 文件描述應用的端點——Swagger UI、Postman 和程式碼生成器讀取的正是它。記錄請求日誌每個請求向程式的輸出列印一行——方法、路徑、狀態碼和耗時。提供靜態檔案提供一個資料夾中的檔案——頁面、指令碼、圖片——存取資料夾本身的地址時提供其 index.html。

端點響應

應用資料庫

資料庫語句

Web 結果

Web 應用

Glaze 精靈

QuickServe 網頁服務

響應

網頁文字

執行中的 Web 應用

執行中的伺服器

基本應用

儀表板構建器