{"id":"dolphin.materials--DolphinSurfaceWave","name":"DolphinSurfaceWave","owner":"dolphin","package":"dolphin.materials","kind":"function","signature":"external DolphinSurfaceWave(float coordinate,float frequency) returns float","description":"Turn a position and frequency into a repeating wave that can drive stripes or another material property.","context":"Compose linear-color surfaces and shared shading math in ordinary Yeho code.","parameters":[{"name":"coordinate","type":"float","description":"Supply coordinate as float."},{"name":"frequency","type":"float","description":"Supply frequency as float."}],"returns":"float","members":[],"tags":["cpu","dolphin","dolphin.materials","function","materials","source-example"],"updated":"2026-09-09","source":{"repository":"dolphin","path":"packages/materials/src/surface.yh","line":16,"sha256":"009f4f147ecdf092eeb6d6c7a20fae2c1b2a351f4cb47a531420e348713e03df"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use DolphinSurfaceWave","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using dolphin.materials\n\n// Compose linear-color surfaces and shared shading math in ordinary Yeho code.\nfloat coordinate = 1.0\nfloat frequency = 1.0\nfloat result = DolphinSurfaceWave(coordinate, frequency)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.dolphin_materials__dolphinsurfacewave\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"dolphin.materials\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/materials\"\n\n[[dependencies]]\npackage = \"dolphin.math\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/math\"\n\n[[dependencies]]\npackage = \"dolphin.spatial3d\"\nversion = \"0.1.0\"\npath = \"../../../dolphin/packages/spatial3d\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"6fde1541ebb923824be8d388ee593d19759755616a9aa0c2b4fe08c45abf226f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=dolphin.materials--DolphinSurfaceWave","json":"https://demonhunterlabs.com/reference/items/dolphin.materials--DolphinSurfaceWave.json","markdown":"https://demonhunterlabs.com/reference/text/dolphin.materials--DolphinSurfaceWave.md"}
