| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/ilyabelow/daScript/master/examples/tutorial/tutorial03.das | [Back] [Original] |
require tutorial_03
[export]
def test
print("this tutorial binds custom type with fields and properties, as well as function which takes and returns this type\n")
let c = [[Color g=uint8(0x40), a=uint8(0xff)]]
debug(c, "c=")
print("c = {c}, luminance is {c.luminance}\n")
let cg = make_gray(c)
print("cg = {cg}\n")
| Web Proxy Viewer | New URL | Original Page |