Bill,
Thank you very much.
Mostly I want to get n turtles, not cubes, that are not rotating to time
but behave like "Logo" turtles and react to commands in the Terminal window
like Forward 3 and Right 90. So I want to start with 2 separate turtles and
I guess I am all wrong in my idea that the lo
Hi J Gurus,
Please forgive an awfully naive question.
Here it is in sorta-J context --
TEST =: 3 : 0
For each item (an integer) in y
do.
How can I NAME the item, in order to
select. NAME and then run
case. 0 do. this
case. 1 do. that, etc., against it?
end.
end.
)
TEST =: 3 : 0
for_NAME. y do.
select. NAME
case. 0 do. echo 'this'
case. 1 do. echo 'that'
case. do. echo 'etc'
end.
end.
)
as used:
TEST i.3
this
that
etc
That's the second 'for' at
https://code.jsoftware.com/wiki/Vocabulary/fordot
On 202
Ah, beautiful, thank you!!!
On 02/14/2020 04:33 PM, Julian Fondren wrote:
TEST =: 3 : 0
for_NAME. y do.
select. NAME
case. 0 do. echo 'this'
case. 1 do. echo 'that'
case. do. echo 'etc'
end.
end.
)
as used:
TEST i.3
this
th
On Fri, Feb 14, 2020 at 4:15 PM Brian Schott wrote:
> I am mostly interested in how commands in the Terminal window can be sent
> to the Cube in the "a" window. Any pointers?
There's two parts to the answer to your question, in the context of shader.ijs
(1) Update the geometry being rendered,
(2
Raul,
Yes, you are a big help.
However, you say that the only geometry to update in shader is R, but I
don't think so. LR (left and right) is also explicitly updated, and IO (in
and out) and UD (up and down) could potentially be updated. R is likely
updating the heading of the turtle, but earlier
Oh, yes
I hadn't been using the key commands, and had forgotten about them.
Thanks,
--
Raul
On Fri, Feb 14, 2020 at 6:19 PM Brian Schott wrote:
> Raul,
>
> Yes, you are a big help.
>
> However, you say that the only geometry to update in shader is R, but I
> don't think so. LR (left and
p.s. yes, it should be possible to render many copies of the same cube,
resetting it's position at the start of each paint, and looping through a
list of coordinates representing a path which positions it.
Thanks again,
--
Raul
On Fri, Feb 14, 2020 at 6:19 PM Brian Schott wrote:
> Raul,
>
> Y
If you intended to run turtle graphics only, then drawing cube is over
skilled. Drawing triangles is much simpler. eg a triangle with vertices
0 1 0, 1 _1 0, _1 _1 0
then use different scale, translate and rotate to place them into different
positions and orientations.
Also only a constant solid c
f0=. 3 : 'echo ''this''[y'"0
f1=. 3 : 'echo ''that''[y'"0
f2=. 3 : 'echo ''etc''[y'"0
f0`f1`f2 @.]"0]i.3
this
that
etc
On Fri, Feb 14, 2020 at 4:58 PM PMA wrote:
> Ah, beautiful, thank you!!!
>
> On 02/14/2020 04:33 PM, Julian Fondren wrote:
> >TEST =: 3 : 0
> > for_NAME. y
In other words, "for" in J is "foreach" in other programming
languages.
Fri, 14 Feb 2020, PMA написал(а):
> Ah, beautiful, thank you!!!
>
> On 02/14/2020 04:33 PM, Julian Fondren wrote:
> >TEST =: 3 : 0
> > for_NAME. y do.
> >select. NAME
> >case. 0 do. echo 'this
11 matches
Mail list logo