![]() In the end, I had fun doing this project. Then it builds the graph horizontally along the X-axis (the Green value), then returns to the Y-axis, jumps up the page 5 points, and makes another line of rectangles. This script starts the graphical structure at 300, 300, which is about the middle of a US Letter-size page horizontally and maybe a third of the way down from the top this is the origin of the graph. Rect = scribus.createRect(x + g, y, 5, 5) ![]() If scribus.newDoc(scribus.PAPER_LETTER, (0,0,0,0),scribus.PORTRAIT, 1, scribus.UNIT_POINTS, scribus.NOFACINGPAGES, scribus.FIRSTPAGERIGHT): I used this bit of Python code to accomplish that task for the Green–Red graph: x = 300 Thus, for each 2D graph, I would make about 250 colors, and the cube would measure 250 points to a side, or 3.5 inches. I decided to make value jumps of 5 for the colors and make rectangles measuring 5 points on a side. I can create RGB colors, make rectangles showing the colors, and arrange them in a 2D format. ![]() It turns out this is not very difficult to do using Scribus and its Python Scripter capability. For example, a surface would keep B (or blue) at 0 and the remaining axes would show what happens as I plot values as colors for R (red) and G (green) from 0 to 255. RGB values would be depicted on a three-dimensional graph with X-, Y-, and Z-axes. ![]() This is usually with pigment colors rather than light, and you lose any sense of the variation in color brightness or luminosity.Īs an alternative to the color wheel, I came up with the idea of displaying the RGB spectrum on the surfaces of a cube using a series of graphs. When I decided I wanted to play with color this summer, I thought about the fact that colors are usually depicted on a color wheel.
0 Comments
Leave a Reply. |