User Tools

Site Tools


preview:api:color

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
preview:api:color [2020/05/22 12:13] – external edit 127.0.0.1preview:api:color [2023/12/12 12:15] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 **Category**: Data structure **Category**: Data structure
 +
  
  
 ===== Functions ===== ===== Functions =====
 +
 +----
 +
 +==== setFromHsb ====
 +
 +''void **color.setFromHsb**(//object//, //hsb//)''
 +
 +^ Name ^ Type ^ Description ^
 +| //''object''// | ''color'' |  |
 +| //''hsb''// | ''[[preview:api:vec3f|vec3f]]'' |  |
 +
 +''void **color.setFromHsb**(//object//, //hue//, //saturation//, //brightness//)''
 +
 +^ Name ^ Type ^ Description ^
 +| //''object''// | ''color'' |  |
 +| //''hue''// | ''[[preview:data-types#float|float]]'' |  |
 +| //''saturation''// | ''[[preview:data-types#float|float]]'' |  |
 +| //''brightness''// | ''[[preview:data-types#float|float]]'' |  |
  
 ---- ----
  
 ==== setFromHsba ==== ==== setFromHsba ====
-''void **color.setFromHsba**(//this//, //hue//, //saturation//, //brightness//, //alpha//)''+ 
 +''void **color.setFromHsba**(//object//, //hue//, //saturation//, //brightness//, //alpha//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
-| //''this''// | ''color'' |  | +| //''object''// | ''color'' |  | 
-| //''hue''// | ''float'' |  | +| //''hue''// | ''[[preview:data-types#float|float]]'' |  | 
-| //''saturation''// | ''float'' |  | +| //''saturation''// | ''[[preview:data-types#float|float]]'' |  | 
-| //''brightness''// | ''float'' |  | +| //''brightness''// | ''[[preview:data-types#float|float]]'' |  | 
-| //''alpha''// | ''float'' |  |+| //''alpha''// | ''[[preview:data-types#float|float]]'' |  |
  
 ---- ----
  
 ==== getHsb ==== ==== getHsb ====
-''[[preview:api:vec3f|vec3f]] **color.getHsb**(//this//)''+ 
 +''[[preview:api:vec3f|vec3f]] **color.getHsb**(//object//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
-| //''this''// | ''color'' |  |+| //''object''// | ''color'' |  |
  
 ---- ----
  
 ==== toGamma ==== ==== toGamma ====
-''[[preview:api:color|color]] **color.toGamma**(//this//)''+ 
 +''[[preview:api:color|color]] **color.toGamma**(//object//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
-| //''this''// | ''color'' |  |+| //''object''// | ''color'' |  |
  
 ---- ----
  
 ==== toLinear ==== ==== toLinear ====
-''[[preview:api:color|color]] **color.toLinear**(//this//)''+ 
 +''[[preview:api:color|color]] **color.toLinear**(//object//)''
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
-| //''this''// | ''color'' |  |+| //''object''// | ''color'' |  | 
  
preview/api/color.1590163999.txt.gz · Last modified: 2020/05/22 12:13 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki