{"id":"runtime--Canvas.Clear","name":"Canvas.Clear","owner":"yeho","package":"runtime.Canvas","kind":"builtin","signature":"Canvas.Clear(int color_1, int color_2, int color_3) -> void","description":"Clear through the Canvas runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"color_1","type":"int","description":"Supply color 1 as int.","rule":"Int"},{"name":"color_2","type":"int","description":"Supply color 2 as int.","rule":"Int"},{"name":"color_3","type":"int","description":"Supply color 3 as int.","rule":"Int"}],"returns":"void","members":[],"tags":["builtin","canvas","cpu","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1525,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources."],"examples":[{"id":"usage","title":"Call Canvas.Clear","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"int color_1 = 1\nint color_2 = 1\nint color_3 = 1\nCanvas.Clear(color_1, color_2, color_3)\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__canvas_clear\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"785979497af820cb9a62f75ca525d8f6f216b62c63fa2edb9914a990e1e5b8aa","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--Canvas.Clear","json":"https://demonhunterlabs.com/reference/items/runtime--Canvas.Clear.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--Canvas.Clear.md"}
