FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
daScript/examples/tutorial/tutorial03.das at master · ilyabelow/daScript · GitHub
ilyabelow
/
daScript
Public
forked from
GaijinEntertainment/daScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
daScript
/
examples
/
tutorial
/
tutorial03.das
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (9 loc) · 341 Bytes
Breadcrumbs
daScript
/
examples
/
tutorial
/
tutorial03.das
Copy path
File metadata and controls
11 lines (9 loc) · 341 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
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
"
)
Back
|
FazBrowse Home
|
New Git URL