Color.st
changeset 3880 c4c8268a2d9f
parent 3878 28052cae1ad3
child 3892 fb62c937c134
equal deleted inserted replaced
3879:cfb631c31105 3880:c4c8268a2d9f
  3497 
  3497 
  3498     "Created: 14.6.1996 / 20:13:22 / cg"
  3498     "Created: 14.6.1996 / 20:13:22 / cg"
  3499     "Modified: 11.7.1996 / 18:20:14 / cg"
  3499     "Modified: 11.7.1996 / 18:20:14 / cg"
  3500 ! !
  3500 ! !
  3501 
  3501 
  3502 !Color methodsFor:'Compatibility - ST80'!
  3502 !Color methodsFor:'Compatibility-ST80'!
  3503 
  3503 
  3504 asDevicePaintOn:aDevice
  3504 asDevicePaintOn:aDevice
  3505     "ST-80 compatibility: an alias for on:.
  3505     "ST-80 compatibility: an alias for on:.
  3506      create a new Color representing the same color as
  3506      create a new Color representing the same color as
  3507      myself on aDevice; if one already exists, return the one"
  3507      myself on aDevice; if one already exists, return the one"
  3519     "same as darkened - for ST-80 compatibility"
  3519     "same as darkened - for ST-80 compatibility"
  3520 
  3520 
  3521     ^ self darkened
  3521     ^ self darkened
  3522 ! !
  3522 ! !
  3523 
  3523 
  3524 !Color methodsFor:'Compatibility - Squeak'!
  3524 !Color methodsFor:'Compatibility-Squeak'!
  3525 
  3525 
  3526 bitPatternForDepth: depth
  3526 bitPatternForDepth: depth
  3527     "Return a Bitmap, possibly containing a stipple pattern, 
  3527     "Return a Bitmap, possibly containing a stipple pattern, 
  3528      that best represents this color at the given depth. 
  3528      that best represents this color at the given depth. 
  3529      BitBlt calls this method to convert colors into Bitmaps. 
  3529      BitBlt calls this method to convert colors into Bitmaps. 
  5186 ! !
  5186 ! !
  5187 
  5187 
  5188 !Color class methodsFor:'documentation'!
  5188 !Color class methodsFor:'documentation'!
  5189 
  5189 
  5190 version
  5190 version
  5191     ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.176 2003-05-07 14:10:12 cg Exp $'
  5191     ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.177 2003-05-07 14:32:00 cg Exp $'
  5192 ! !
  5192 ! !
  5193 
  5193 
  5194 Color initialize!
  5194 Color initialize!