File: Color.txt

package info (click to toggle)
liblas 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,888 kB
  • ctags: 4,614
  • sloc: cpp: 31,630; xml: 4,195; python: 2,928; ansic: 2,439; cs: 2,411; sh: 143; makefile: 37
file content (26 lines) | stat: -rwxr-xr-x 312 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  >>> from liblas import color
  >>> c = color.Color()
  >>> c.red
  0
  >>> c.green
  0
  >>> c.blue
  0

  >>> c = color.Color(red = 123, blue = 125, green = 124)
  >>> c.red
  123
  >>> c.green
  124
  >>> c.blue
  125


  >>> for i in c:
  ...     print(i)
  123
  124
  125

  >>> list(c)
  [123, 124, 125]