Message Boards Message Boards


How to create an array with an scale of green color using Image command?

Posted 9 years ago
2 Replies
2 Total Likes

I have tried to create an 3x3 array from dark to light green using the Image command. I know how to create this array using ArrayPlot but I need an image in order to create a 3D image from a stack of images with Image3D (see the attached file). Could you help me?

thank you,
Antonio Squadri
POSTED BY: Antonio Squadri
2 Replies
A more straight forward approach would be something like this:
  List @@@ Array[Hue[.33, 1, #] &, 9, {0, 1}], {3, 3, 3}],
ColorSpace -> "HSB"]

POSTED BY: Shadi Ashnai
In[77]:= cf = Image[
ArrayPlot[RandomReal[{0.2,0.3}, {3, 3}],
   ColorFunction -> "BlueGreenYellow"]]
will not do? At least it is an Image
In[79]:= ImageQ[cf]

Out[79]= True
the ColorFunction "BlueGreenYello" you could modify
POSTED BY: Udo Krause
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract