Color.st
changeset 3264 ab71c2bd250f
parent 3240 c93e33069fb5
child 3277 9b1f784f04b2
equal deleted inserted replaced
3263:bd92a12c9316 3264:ab71c2bd250f
   642 
   642 
   643 brightness:brightness
   643 brightness:brightness
   644     "create a gray color with given brightness (0..1).
   644     "create a gray color with given brightness (0..1).
   645      ST-80 compatibility."
   645      ST-80 compatibility."
   646 
   646 
   647     ^ self scaledGray:(brightness * MaxValue)
   647     ^ self scaledGray:(brightness * MaxValue) rounded
   648 !
   648 !
   649 
   649 
   650 colorId:id
   650 colorId:id
   651     "return a color for a specific colorid without associating it to a
   651     "return a color for a specific colorid without associating it to a
   652      specific device. Use this only for bitmaps which want 0- or 1-color,
   652      specific device. Use this only for bitmaps which want 0- or 1-color,
  5111 ! !
  5111 ! !
  5112 
  5112 
  5113 !Color class methodsFor:'documentation'!
  5113 !Color class methodsFor:'documentation'!
  5114 
  5114 
  5115 version
  5115 version
  5116     ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.157 2000-07-24 14:31:40 cg Exp $'
  5116     ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.158 2000-08-22 10:11:24 cg Exp $'
  5117 ! !
  5117 ! !
  5118 Color initialize!
  5118 Color initialize!