Nature with Object Pascal
Pascal translation of "The Nature of Code"
The Nature of Code + Color Code
2024.02.17 21:07
I was deeply inspired by "The Nature of Code".
It is tutorial based on Processing software, however, I believe that I can translate all the code to Object Pascal.
The full listing of tutorial is https://www.youtube.com/watch?v=6vX8wT1G798&list=PLRqwX-V7Uu6aFlwukCmDf0-1-uSR7mklK
No. | Subject | Author | Date | Views |
---|---|---|---|---|
» | The Nature of Code + Color Code [1] | me | 2024.02.17 | 102 |
5 | 3D Matrix from Native Object Pascal | me | 2024.06.01 | 39 |
4 | 3D Matrix from BGRABitmap Library | me | 2024.06.01 | 35 |
3 | TPoint3D and IBGRAVertex3D | me | 2024.03.11 | 66 |
2 | BGRA Bitmap Library's TPointF as 2D Vector | me | 2024.02.12 | 86 |
1 | IBGRAObject3D properties to be familiar with | me | 2024.01.26 | 110 |
Color Code for BGRABitmap Library
// SPDX-License-Identifier: LGPL-3.0-linking-exception
{=== Color definitions ===}
BGRAWhite: TBGRAPixel;
BGRABlack: TBGRAPixel;
//VGA colors
VGABlack,VGAGray,VGASilver,VGAWhite,
VGAMaroon,VGARed,VGAPurple,VGAFuchsia,
VGAGreen,VGALime,VGAOlive,VGAYellow,
VGANavy,VGABlue,VGATeal,VGAAqua: TBGRAPixel;
//Red colors
CSSIndianRed,CSSLightCoral,CSSSalmon,CSSDarkSalmon,
CSSRed,CSSCrimson,CSSFireBrick,CSSDarkRed: TBGRAPixel;
//Pink colors
CSSPink,CSSLightPink,CSSHotPink,CSSDeepPink,
CSSMediumVioletRed,CSSPaleVioletRed: TBGRAPixel;
//Orange colors
CSSLightSalmon,CSSCoral,CSSTomato,CSSOrangeRed,
CSSDarkOrange,CSSOrange: TBGRAPixel;
//Yellow colors
CSSGold,CSSYellow,CSSLightYellow,CSSLemonChiffon,
CSSLightGoldenrodYellow,CSSPapayaWhip,CSSMoccasin,CSSPeachPuff,
CSSPaleGoldenrod,CSSKhaki,CSSDarkKhaki: TBGRAPixel;
//Purple colors
CSSLavender,CSSThistle,CSSPlum,CSSViolet,
CSSOrchid,CSSFuchsia,CSSMagenta,CSSMediumOrchid,
CSSMediumPurple,CSSBlueViolet,CSSDarkViolet,CSSDarkOrchid,
CSSDarkMagenta,CSSPurple,CSSIndigo,CSSDarkSlateBlue,
CSSSlateBlue,CSSMediumSlateBlue: TBGRAPixel;
//Green colors
CSSGreenYellow,CSSChartreuse,CSSLawnGreen,CSSLime,
CSSLimeGreen,CSSPaleGreen,CSSLightGreen,CSSMediumSpringGreen,
CSSSpringGreen,CSSMediumSeaGreen,CSSSeaGreen,CSSForestGreen,
CSSGreen,CSSDarkGreen,CSSYellowGreen,CSSOliveDrab,
CSSOlive,CSSDarkOliveGreen,CSSMediumAquamarine,CSSDarkSeaGreen,
CSSLightSeaGreen,CSSDarkCyan,CSSTeal: TBGRAPixel;
//Blue/Cyan colors
CSSAqua,CSSCyan,CSSLightCyan,CSSPaleTurquoise,
CSSAquamarine,CSSTurquoise,CSSMediumTurquoise,CSSDarkTurquoise,
CSSCadetBlue,CSSSteelBlue,CSSLightSteelBlue,CSSPowderBlue,
CSSLightBlue,CSSSkyBlue,CSSLightSkyBlue,CSSDeepSkyBlue,
CSSDodgerBlue,CSSCornflowerBlue,CSSRoyalBlue,CSSBlue,
CSSMediumBlue,CSSDarkBlue,CSSNavy,CSSMidnightBlue: TBGRAPixel;
//Brown colors
CSSCornsilk, CSSBlanchedAlmond, CSSBisque, CSSNavajoWhite,
CSSWheat, CSSBurlyWood, CSSTan, CSSRosyBrown,
CSSSandyBrown, CSSGoldenrod, CSSDarkGoldenrod, CSSPeru,
CSSChocolate, CSSSaddleBrown, CSSSienna, CSSBrown,
CSSMaroon: TBGRAPixel;
//White colors
CSSWhite, CSSSnow, CSSHoneydew, CSSMintCream,
CSSAzure, CSSAliceBlue, CSSGhostWhite, CSSWhiteSmoke,
CSSSeashell, CSSBeige, CSSOldLace, CSSFloralWhite,
CSSIvory, CSSAntiqueWhite, CSSLinen, CSSLavenderBlush,
CSSMistyRose: TBGRAPixel;
//Gray colors
CSSGainsboro, CSSLightGray, CSSSilver, CSSDarkGray,
CSSGray, CSSDimGray, CSSLightSlateGray, CSSSlateGray,
CSSDarkSlateGray, CSSBlack: TBGRAPixel;