Click here to Skip to main content
15,881,709 members
Articles / Multimedia / GDI+

Gradients made easy

Rate me:
Please Sign up or sign in to vote.
4.79/5 (148 votes)
26 Dec 2013CPOL17 min read 342.2K   16.2K   297  
A utility to design gradients interactively.
<ShapeObjects>
  <ShapeObject>
    <Id>359906493</Id>
    <Rectangle>59,52,455,376</Rectangle>
    <FontFamily>Palatino Linotype</FontFamily>
    <FontSize>10</FontSize>
    <Text>
    </Text>
    <Type>RoundedRectangle</Type>
    <HasBorder>True</HasBorder>
    <BrushName>
    </BrushName>
    <FillType>linearGradient</FillType>
    <Color>Color [A=135, R=255, G=255, B=255]</Color>
    <Color1>Color [Black]</Color1>
    <Color2>Color [A=127, R=45, G=135, B=255]</Color2>
    <LinearAngle>270</LinearAngle>
    <CenterPoint>{X=0.5, Y=0.5}</CenterPoint>
    <UseSigmaShape>False</UseSigmaShape>
    <UseBlendShape>True</UseBlendShape>
    <SurroundColors>Color [A=135,R=255,G=255,B=255]Color [A=57,R=180,G=0,B=0]Color [A=57,R=180,G=0,B=155]Color [A=127,R=45,G=135,B=255]</SurroundColors>
    <Focus>0.6078432</Focus>
    <Scale>0.8137255</Scale>
    <Positions>0,0.3220339,0.4020339,1</Positions>
    <Factors>0.2,0.2,0.2,0.8</Factors>
    <UseBlend>False</UseBlend>
    <UseColorBlend>True</UseColorBlend>
    <UseGammaCorrection>True</UseGammaCorrection>
    <FocusScale>{X=0.5, Y=0.5}</FocusScale>
  </ShapeObject>
  <ShapeObject>
    <Id>1539174560</Id>
    <Rectangle>188,154,174,174</Rectangle>
    <FontFamily>Palatino Linotype</FontFamily>
    <FontSize>10</FontSize>
    <Text>
    </Text>
    <Type>Elliptical</Type>
    <HasBorder>True</HasBorder>
    <BrushName>
    </BrushName>
    <FillType>pathGradient</FillType>
    <Color>Color [White]</Color>
    <Color1>Color [Black]</Color1>
    <Color2>Color [Black]</Color2>
    <LinearAngle>90</LinearAngle>
    <CenterPoint>{X=0.5057471, Y=0.9252874}</CenterPoint>
    <UseSigmaShape>False</UseSigmaShape>
    <UseBlendShape>False</UseBlendShape>
    <SurroundColors>Color [A=255,R=255,G=0,B=0]Color [A=255,R=255,G=255,B=0]Color [A=255,R=0,G=255,B=0]Color [A=255,R=0,G=255,B=255]Color [A=255,R=0,G=0,B=255]Color [A=255,R=255,G=0,B=255]Color [A=255,R=255,G=0,B=0]</SurroundColors>
    <Focus>0.5</Focus>
    <Scale>0.5</Scale>
    <Positions>0,0.2557627,0.4005085,0.6459321,0.7579661,0.8527118,1</Positions>
    <Factors>0.2,0.2,0.2,0.2,0.2,0.2,0.8</Factors>
    <UseBlend>False</UseBlend>
    <UseColorBlend>True</UseColorBlend>
    <UseGammaCorrection>False</UseGammaCorrection>
    <FocusScale>{X=0.5, Y=0.5}</FocusScale>
  </ShapeObject>
  <ShapeObject>
    <Id>29236707</Id>
    <Rectangle>359,275,50,50</Rectangle>
    <FontFamily>Palatino Linotype</FontFamily>
    <FontSize>10</FontSize>
    <Text>
    </Text>
    <Type>Elliptical</Type>
    <HasBorder>True</HasBorder>
    <BrushName>
    </BrushName>
    <FillType>solid</FillType>
    <Color>Color [A=255, R=0, G=255, B=0]</Color>
    <Color1>Color [Black]</Color1>
    <Color2>Color [Black]</Color2>
    <LinearAngle>90</LinearAngle>
    <CenterPoint>{X=0.2, Y=1.58}</CenterPoint>
    <UseSigmaShape>False</UseSigmaShape>
    <UseBlendShape>False</UseBlendShape>
    <SurroundColors>Color [White]Color [Black]</SurroundColors>
    <Focus>0.5</Focus>
    <Scale>0.5</Scale>
    <Positions>0,1</Positions>
    <Factors>0.2,0.8</Factors>
    <UseBlend>False</UseBlend>
    <UseColorBlend>False</UseColorBlend>
    <UseGammaCorrection>False</UseGammaCorrection>
    <FocusScale>{X=0.5, Y=0.5}</FocusScale>
  </ShapeObject>
  <ShapeObject>
    <Id>134224868</Id>
    <Rectangle>143,144,50,50</Rectangle>
    <FontFamily>Palatino Linotype</FontFamily>
    <FontSize>10</FontSize>
    <Text>
    </Text>
    <Type>Elliptical</Type>
    <HasBorder>True</HasBorder>
    <BrushName>
    </BrushName>
    <FillType>solid</FillType>
    <Color>Color [A=255, R=255, G=0, B=255]</Color>
    <Color1>Color [Black]</Color1>
    <Color2>Color [Black]</Color2>
    <LinearAngle>90</LinearAngle>
    <CenterPoint>{X=0.6, Y=0.16}</CenterPoint>
    <UseSigmaShape>False</UseSigmaShape>
    <UseBlendShape>False</UseBlendShape>
    <SurroundColors>Color [White]Color [Black]</SurroundColors>
    <Focus>0.5</Focus>
    <Scale>0.5</Scale>
    <Positions>0,1</Positions>
    <Factors>0.2,0.8</Factors>
    <UseBlend>False</UseBlend>
    <UseColorBlend>False</UseColorBlend>
    <UseGammaCorrection>False</UseGammaCorrection>
    <FocusScale>{X=0.5, Y=0.5}</FocusScale>
  </ShapeObject>
  <ShapeObject>
    <Id>2134161410</Id>
    <Rectangle>249,94,50,50</Rectangle>
    <FontFamily>Palatino Linotype</FontFamily>
    <FontSize>10</FontSize>
    <Text>
    </Text>
    <Type>Elliptical</Type>
    <HasBorder>True</HasBorder>
    <BrushName>
    </BrushName>
    <FillType>solid</FillType>
    <Color>Color [A=255, R=255, G=0, B=0]</Color>
    <Color1>Color [Black]</Color1>
    <Color2>Color [Black]</Color2>
    <LinearAngle>90</LinearAngle>
    <CenterPoint>{X=0.5, Y=0.5}</CenterPoint>
    <UseSigmaShape>False</UseSigmaShape>
    <UseBlendShape>False</UseBlendShape>
    <SurroundColors>Color [White]Color [Black]</SurroundColors>
    <Focus>0.5</Focus>
    <Scale>0.5</Scale>
    <Positions>0,1</Positions>
    <Factors>0.2,0.8</Factors>
    <UseBlend>False</UseBlend>
    <UseColorBlend>False</UseColorBlend>
    <UseGammaCorrection>False</UseGammaCorrection>
    <FocusScale>{X=0.5, Y=0.5}</FocusScale>
  </ShapeObject>
  <ShapeObject>
    <Id>1450422331</Id>
    <Rectangle>140,276,50,50</Rectangle>
    <FontFamily>Palatino Linotype</FontFamily>
    <FontSize>10</FontSize>
    <Text>
    </Text>
    <Type>Elliptical</Type>
    <HasBorder>True</HasBorder>
    <BrushName>
    </BrushName>
    <FillType>solid</FillType>
    <Color>Color [A=255, R=0, G=0, B=255]</Color>
    <Color1>Color [Black]</Color1>
    <Color2>Color [Black]</Color2>
    <LinearAngle>90</LinearAngle>
    <CenterPoint>{X=0.5, Y=0.5}</CenterPoint>
    <UseSigmaShape>False</UseSigmaShape>
    <UseBlendShape>False</UseBlendShape>
    <SurroundColors>Color [White]Color [Black]</SurroundColors>
    <Focus>0.5</Focus>
    <Scale>0.5</Scale>
    <Positions>0,1</Positions>
    <Factors>0.2,0.8</Factors>
    <UseBlend>False</UseBlend>
    <UseColorBlend>False</UseColorBlend>
    <UseGammaCorrection>False</UseGammaCorrection>
    <FocusScale>{X=0.5, Y=0.5}</FocusScale>
  </ShapeObject>
  <ShapeObject>
    <Id>759101347</Id>
    <Rectangle>249,339,50,50</Rectangle>
    <FontFamily>Palatino Linotype</FontFamily>
    <FontSize>10</FontSize>
    <Text>
    </Text>
    <Type>Elliptical</Type>
    <HasBorder>True</HasBorder>
    <BrushName>
    </BrushName>
    <FillType>solid</FillType>
    <Color>Color [A=255, R=0, G=255, B=255]</Color>
    <Color1>Color [Black]</Color1>
    <Color2>Color [Black]</Color2>
    <LinearAngle>90</LinearAngle>
    <CenterPoint>{X=0.5, Y=0.5}</CenterPoint>
    <UseSigmaShape>False</UseSigmaShape>
    <UseBlendShape>False</UseBlendShape>
    <SurroundColors>Color [White]Color [Black]</SurroundColors>
    <Focus>0.5</Focus>
    <Scale>0.5</Scale>
    <Positions>0,1</Positions>
    <Factors>0.2,0.8</Factors>
    <UseBlend>False</UseBlend>
    <UseColorBlend>False</UseColorBlend>
    <UseGammaCorrection>False</UseGammaCorrection>
    <FocusScale>{X=0.5, Y=0.5}</FocusScale>
  </ShapeObject>
  <ShapeObject>
    <Id>1485403625</Id>
    <Rectangle>360,157,50,50</Rectangle>
    <FontFamily>Palatino Linotype</FontFamily>
    <FontSize>10</FontSize>
    <Text>
    </Text>
    <Type>Elliptical</Type>
    <HasBorder>True</HasBorder>
    <BrushName>
    </BrushName>
    <FillType>solid</FillType>
    <Color>Color [A=255, R=255, G=255, B=0]</Color>
    <Color1>Color [Black]</Color1>
    <Color2>Color [Black]</Color2>
    <LinearAngle>90</LinearAngle>
    <CenterPoint>{X=0.5, Y=0.18}</CenterPoint>
    <UseSigmaShape>False</UseSigmaShape>
    <UseBlendShape>False</UseBlendShape>
    <SurroundColors>Color [White]Color [Black]</SurroundColors>
    <Focus>0.5</Focus>
    <Scale>0.5</Scale>
    <Positions>0,1</Positions>
    <Factors>0.2,0.8</Factors>
    <UseBlend>False</UseBlend>
    <UseColorBlend>False</UseColorBlend>
    <UseGammaCorrection>False</UseGammaCorrection>
    <FocusScale>{X=0.5, Y=0.5}</FocusScale>
  </ShapeObject>
</ShapeObjects>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Retired
United States United States
Currently enjoying retirement and working on projects without pressure, deadlines or any kind of management.

Comments and Discussions