Squeak Class Documentation category index | class index  
 
GradientFillStyle
  category: Balloon-Fills
  superclass: OrientedFillStyle
  subclasses:

No comment. Sorry.

instance methods
  Morphic menu
  addFillStyleMenuItems:hand:from:
addNewColorIn:event:
beLinearGradientIn:
beRadialGradientIn:
changeColorSelector:hand:morph:originalColor:
changeFirstColorIn:event:
changeSecondColorIn:event:
firstColor:forMorph:hand:
lastColor:forMorph:hand:

  accessing
  colorRamp
colorRamp:
pixelRamp
pixelRamp:
radial
radial:

  as yet unclassified
  encodeForRemoteCanvas

  converting
  asColor
mixed:with:

  private
  checkTranslucency
computePixelRampOfSize:
display
scaledAlphaMix:of:with:

  testing
  isGradientFill
isRadialFill
isSolidFill
isTranslucent

class methods
  instance creation
  colors:
ramp:
sample

instance methods
  Morphic menu top  
 

addFillStyleMenuItems:hand:from:

Add the items for changing the current fill style of the receiver


 

addNewColorIn:event:


 

beLinearGradientIn:


 

beRadialGradientIn:


 

changeColorSelector:hand:morph:originalColor:

Change either the firstColor or the lastColor (depending on aSymbol). Put up a color picker to hande it. We always use a modal picker so that the user can adjust both colors concurrently.


 

changeFirstColorIn:event:


 

changeSecondColorIn:event:


 

firstColor:forMorph:hand:


 

lastColor:forMorph:hand:


  accessing top  
 

colorRamp


 

colorRamp:


 

pixelRamp


 

pixelRamp:


 

radial


 

radial:


  as yet unclassified top  
 

encodeForRemoteCanvas


  converting top  
 

asColor

Guess...


 

mixed:with:


  private top  
 

checkTranslucency


 

computePixelRampOfSize:

Compute the pixel ramp in the receiver


 

display


 

scaledAlphaMix:of:with:

Open-coded version of alpha mixing two 32bit pixel words and returning the scaled pixel value.


  testing top  
 

isGradientFill


 

isRadialFill


 

isSolidFill


 

isTranslucent


class methods
  instance creation top  
 

colors:

Create a gradient fill style from an array of equally spaced colors


 

ramp:


 

sample

GradientFill sample