logologo
Guide
API
This week in Our Team
Examples
Contribute
简体中文
English
Guide
API
This week in Our Team
Examples
Contribute
简体中文
English
logologo
Introduction
Makepad Quick Reference Guide
Command line interface

Sdf2d

builtin

abs
acos
all
any
asin
atan
ceil
clamp
cos
cross
degrees
dFdx, dFdy
distance
dot
equal
exp
exp2
faceforward
floor
fract
greaterThan
greaterThanEqual
inverse
inversesqrt
length
lessThan
lessThanEqual
log
log2
matrixCompMult
max
min
mix
mod
normalize
not
notEqual
pow
radians
reflect
refract
2D-samples a render target texture. [???]
sign
sin
smoothstep
sqrt
step
tan
transpose

fields

aa
blur
clip
dist
has_clip
last_pos
old_shape
post
result
scale_factor
shape
start_pos

methods

bool

intersect
subtract
union

draw

primitives

arc2
box_all
box_x
box_y
box
circle
hexagon
hline
rect
close_path
fill_keep_premul
fill_keep
fill_premul
fill
line_to
move_to
stroke_keep
stroke

effects

gloop
glow_keep
glow

transform

rotate
scale
translate
clear
viewport
  • Declaration
  • Parameters
  • Description
  • See Also

#log

return the natural logarithm of the parameter

#Declaration

  • genType log(genType x)

#Parameters

  • x: Specify the value of which to take the natural logarithm.

#Description

log returns the natural logarithm of x. i.e., the value 𝑦 which satisfies $$ x = e^{y} $$ Results are undefined if x ≤ 0.

#See Also

  • exp
  • exp2
  • log2
📝 Edit this page on GitHub
Previous PagelessThanEqual
Next Pagelog2
ON THIS PAGE
  • Declaration
  • Parameters
  • Description
  • See Also