Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ngr888

Pages: [1]
1
InForm Discussion / Re: InForm offline
« on: May 05, 2020, 11:40:57 am »
Hello, FellippeHeitor.

Finally I was able to install InForm to work without reinstalling on each use. Uf!

I think this program is a huge breakthrough for QB64 (From the 80s to eternity, you know :-).

Now I have to invest time in reading the corresponding wiki and samples.

In any case, I have a feeling that there is a lot of work left in the development of InForm. I guess the next step will be to be able to work with both programs (QB64 and InForm) simultaneously.

Can it be done?

In many cases, the path of "test and error" is more cost-effective (for me) than super-detailed work planning, especially for small sporadic use programs.

For now your kind indication has opened the way for me.

Thanks a lot.

2
InForm Discussion / InForm offline
« on: May 04, 2020, 02:01:18 pm »
Hello.
Sorry, I'm testing what can be done with InForm.
I downloaded the installer and ran it. But one thing is not clear to me:

After the installation no executable has been created that I can see to launch the program again, instead it seems that it is reinstalled again in each use.

Is this an online execution software?
Or, can it finally be created on the computer to work offline?
Am I doing the wrong thing?

Thanks, very much.

3
QB64 Discussion / Re: elliptic hyperboloid
« on: April 19, 2020, 02:40:40 pm »
put a string or wire through holes and tie to make circle, then angle them all in same direction.


Much better than strings or wires, for a studio model it is to use rubbers. The 3 axis flexibility is very instructive.

The use of rubbers for the edges would allow the construction to be manipulated so that the 'bases' were more or less separated.
As well as that those bases were not parallel, originating lateral surfaces with different parabolas.
(Sorry, it is difficult to explain without the support of a couple of drawings, but I still do not know how to add them to my post.)

4
QB64 Discussion / Re: CIRCLE with coordinates off of screen.
« on: April 19, 2020, 02:10:54 pm »
Hi, TerryRitchie.

Thank you for the answer that, logically, works with the extraordinary beauty of simplicity.

This is in summary the origin of the stupid typo that confused me:
         
================================
SCREEN 12
CLS
CIRCLE (100, 100), 20
circlr (-200, -200), 400
END
================================

Obtaining, of course, the relevant error message:

          ILLEGAL FUNCTION CALL

Highlighting the text in red (making it less legible for me) and indicating the line of the error.
Without further compiler information my attention was focused on the incorrect function call  that I attributed to the negative parameters and not to the writing error.

(CIRCLE "is" a system function
circlr would be a user defined function)

A message like:

     undefined user function circlr

would have served me as a better warning.

Confused in this way, I tackled the problem hard:

================================
REM  Aproximacion a dibujo de arco con centro fuera de pantalla.
'  QB64       15 ABR 2020
'
'
'   Pendiente: precisar punto de entrada y salida en los bordes.

CONST PI = 3.1416

DIM ancho AS INTEGER
DIM alto AS INTEGER
DIM ox AS INTEGER
DIM oy AS INTEGER
DIM r AS INTEGER
' DIM x AS INTEGER      No hacen falta
' DIM y AS INTEGER
DIM x2 AS INTEGER
DIM y2 AS INTEGER
DIM a AS SINGLE
DIM paso AS SINGLE
DIM primera AS INTEGER

ancho = 640
alto = 480

SCREEN 12           'REM_NEWIMAGE(ancho, alto)

ox = 700
oy = 500
r = 400

paso = 0.1

' x = INT(ox + r * COS(0))
' y = INT(oy + r * SIN(0))

primera = 1

FOR a = 0 TO 2 * PI STEP paso
    x2 = INT(ox + r * COS(a))
    y2 = INT(oy + r * SIN(a))
    ' Clipping
    IF ((x2 >= 0 AND (x2 < ancho))) AND ((y2 >= 0) AND (y2 < alto)) THEN
        ' La primera vez se establece el punto para las coordenadas relativas.
        IF primera = 1 THEN
            PSET (x2, y2)
            primera = 0
        ELSE
            LINE -(x2, y2)
        END IF
    END IF
NEXT a
END
================================

Code that works even though it is unrefined and leaves a "gap" between the input of the segments that will make up the circle (arc) and the edges of the window.
With this a PAINT (x, y),c command would fail to find no limit.

Now a new question: By establishing 'logical' coordinates linked to other 'physics', would PMAP also work with coordinates of the circle outside the window to remap?

Thanks again.

PD: OldMoses.

I will read your message carefully. It is something similar to my interest.
Specifically, simulate a (very elementary) approach to the shock waves of an object by breaking the sound barrier.

5
QB64 Discussion / CIRCLE with coordinates off of screen.
« on: April 15, 2020, 04:45:39 pm »
Hi.

How could I draw a circle (an arc, really) with the center coordinates outside the boundaries of the screen?
(No _CLIP -GET an PUT-)

I want to draw several circles with different centers.

Obviously,  CIRCLE(-x1, -y1), r  don't work.

Thank you.

Pages: [1]