Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

# Color by direction, for Dan...

38 views

### Chris M. Thomasson

May 29, 2023, 6:06:12 PM5/29/23
to
I rendered your commands using a different color for up, down, right and
left:

https://i.ibb.co/NmVKGSG/image.png

A snippet of my code:
____________
struct direction
{
glm::vec2 m_normal;
glm::vec3 m_color;
};

direction dir[] = {
{ { 1, 0 }, {1, 0, 0}}, // right
{ { 0, 1 }, {0, 1, 0}}, // up
{ { -1, 0 }, {0, 0, 1}}, // left
{ { 0, -1 }, {1, 1, 0}}, // down
};
____________

Getting any better? The red circle is origin, the green circle is the
end point.

### Chris M. Thomasson

May 29, 2023, 6:08:02 PM5/29/23
to
Also, the thickness of the lines decreases as it iterates. The thinner
the line the closer it is to the end. The thicker they are the closer
they are to the origin. Does that help, or add a point of confusion?

Thanks Dan. :^)

### Dan joyce

May 29, 2023, 9:34:20 PM5/29/23
to
That is not the square lattice I entered in the last update on the 2 sequences going
out and coming back in. What are the extra lines on the upper right? The transition
point on top I don't understand. It is nice how you organized the color but is it
possible to give one solid color going out and another solid color coming back in.
That way you would see the two spiral paths going out then coming back in.

### Dan joyce

May 30, 2023, 9:40:30 AM5/30/23
to
I know, I thought a color for each direction would be nice but now that I make more observations,
one color going out and then one color going back in to finish the lattice. This would show
how a lattice is formed without lifting the pencil. Two colors that have a sharp difference like
black and white and a red contrasting background. A trial of 3 different color combinations
until the best effect would be produced. Black and white are not colors but could be used as
two of the 3 chosen colors for the best effect. Also on a larger scale for a square lattice.
Your example is not clear, with border lines still going out it is hard to make any cense of
it. The color is excellent. Also it is not a square lattice that the latest data does produce.
Thanks for your effort, but try the new data to the full size of the square lattice and finished
squares for each of the 4 boarders.

Thanks again.

### Dan joyce

May 30, 2023, 9:47:17 AM5/30/23
to
You also show a very thin colored line so very small squares can be produced to complete
this larger square lattice.

### Chris M. Thomasson

May 30, 2023, 3:28:15 PM5/30/23
to
I used the following commands:
________________________________________
R,U,R,U,R,U,L,D,L,D,L,D,L,D,R,D,R,U,R,U,R,U,R,U,R,U,L,U,L,U,L,D,
L,D,L,D,L,D,L,D,L,D,R,D,R,D,R,D,R,U,R,U,R,U,R,U,R,U,R,U,R,U,L,U,
L,U,L,U,L,U,L,D,L,D,L,D,L,D,L,D,L,D,L,D,L,D,R,D,R,D,R,D,R,D,R,D,
R,U,R,U,R,U,R,U,R,U,R,U,R,U,R,U,R,U,L,U,L,U,L,U,L,U,L,U,L,U,L,D,
R,D,R,D,R,D,R,D,R,D,R,D,L,D,L,D,L,D,L,D,L,D,L,D,L,D,L,U,L,U,L,U,
L,U,L,U,R,U,R,U,R,U,R,U,R,U,R,U,R,D,R,D,R,D,R,D,L,D,L,D,L,D,L,
D,L,D,L,U,L,U,L,U,R,U,R,U,R,U,R,U,R,D,R,D,L,D,L,D,L,D,L,U
________________________________________

Where did I go wrong? Is this an outdated command list?

### Dan joyce

May 30, 2023, 4:56:34 PM5/30/23
to
My screw up, I left out the most important the actual order of direction commands.
Instead I gave the number of passes for each direction going out and coming in.

Let me send you the simple basic code that you will easily understand so you can translate

Dan

### Chris M. Thomasson

May 30, 2023, 5:09:41 PM5/30/23
to
On 5/29/2023 6:34 PM, Dan joyce wrote:
I thought it was some sort of "extension" to get it to be infinite... ;^)

### Dan joyce

May 30, 2023, 5:20:03 PM5/30/23
to
The one you sent is great but the green circle should encompess everything.

### Chris M. Thomasson

May 30, 2023, 5:24:20 PM5/30/23
to
The green circle is the end point of your commands. The red circle is
the start point, or, origin if you will. The circle in white is unit,
centered at point (0, 0), with a radius of one.

### Chris M. Thomasson

May 30, 2023, 5:26:43 PM5/30/23
to
To create a circle that encompasses your commands, I wold need to find
the maximum distance from the origin. Then I can draw a circle at
origin, with a radius equal to the max distance, and it would encompass it.

### Chris M. Thomasson

May 30, 2023, 5:31:46 PM5/30/23
to
On 5/30/2023 2:19 PM, Dan joyce wrote:
> On Tuesday, May 30, 2023 at 5:09:41 PM UTC-4, Chris M. Thomasson wrote:
>> On 5/29/2023 6:34 PM, Dan joyce wrote:
>>> On Monday, May 29, 2023 at 6:08:02 PM UTC-4, Chris M. Thomasson wrote:
>>>> On 5/29/2023 3:06 PM, Chris M. Thomasson wrote:
[...]
> The one you sent is great but the green circle should encompess everything.

The purple circle encompasses everything:

https://i.ibb.co/D1x0jWm/image.png

Is this what you are looking for? The radius of the circle in purple
centered at origin (0, 0), is 1.18585. Keep in mind that I am scaling
the normalized directions by .125. So they are only .125 units long.

### Chris M. Thomasson

May 30, 2023, 5:41:11 PM5/30/23
to
On 5/30/2023 2:31 PM, Chris M. Thomasson wrote:
> The purple circle encompasses everything:
>
> https://i.ibb.co/D1x0jWm/image.png
>
> Is this what you are looking for? The radius of the circle in purple
> centered at origin (0, 0), is 1.18585. Keep in mind that I am scaling
> the normalized directions by .125. So they are only .125 units long.

Keep in mind that I can now scale back the .125 to ensure that
everything fits inside of the unit circle. 1.18585 is larger than the
unit circle by .18585. ;^)

The scale would be 1 / 1.18585 = 0.8432769743222161318885187839946

So, .125 * 0.8432769743222161318885187839946 should be the radius to
scale back the lengths of the lines in your commands.

Lets try it:

https://i.ibb.co/YL4TW1M/image.png

PERFECT! The circle in purple is scaled back to fit within the unit
circle. :^D

The circle in white is lined up with the circle in purple.

Nice. ;^)

### Dan joyce

May 30, 2023, 7:25:49 PM5/30/23
to
DITTO!! Real nice.
Now get some slow-motion vidio and show only 3 colors 1 background, 1 for going out
to the limit of the lattice and a different colored one for the return path terminating @
the origin.

### Chris M. Thomasson

May 30, 2023, 9:00:00 PM5/30/23
to
I have a couple of options for an anime. Well, I can show, lets say 1
line per second where there are 24 frames in a second. Or, I can show
the growth of a line in those 24 frames. Not sure if I want to go to 60
yet. I can perhaps find some time tonight to email you some samples.

Okay?

### Dan joyce

May 30, 2023, 10:06:25 PM5/30/23
to
Sounds good.
By the way that code I sent you is screwed up. Don't know how it happened but
it did. When you send me the samples I will forward a new listing of code.