Author Topic: SWGPTG - 02 - Drawing Basic Shapes  (Read 3580 times)

caballero

  • Member
  • *****
  • Posts: 1214
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #30 on: November 25, 2019, 05:58:23 AM »
Hello, I have just uploaded my fifth chapter about basic maths for 2d graphics. It is a work in progress that I have just started. The last point is for moving a point between 2 points in the screen in a straight way. If anyone want to try it before I upload more stuff in this chapter is welcome to do it. For the moment only in Spanish and only for TinyC. Regards.
The logic of the error is hidden among the most unexpected lines of the program

HSE

  • Member
  • *****
  • Posts: 1148
  • <AMD>< 7-32>
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #31 on: November 25, 2019, 11:43:32 PM »
Hola Caballero!

Me parece que no está muy claro que son los números complejos. A lo mejor ayudaría una nota que diga para que nos va a servir conocer los números complejos.

Aparentemente todavía no se puede descargar ningún código TinyC.

 :thumbsup:

caballero

  • Member
  • *****
  • Posts: 1214
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #32 on: November 26, 2019, 02:37:59 AM »
Bueno, gajes del directo :biggrin:, ya se pueden descargar. He explicado someramente lo que son los números complejos, en principio no quiero profundizar más para no liar al que lo lea, básicamente el cuerpo de los números complejos se corresponde con el plano real. Los vamos a usar para rotar un número, cuyo ejemplo está en el punto 5.1.3. como he indicado ahí, concretamente la circunferencia de la izquierda. :thumbsup:
The logic of the error is hidden among the most unexpected lines of the program

HSE

  • Member
  • *****
  • Posts: 1148
  • <AMD>< 7-32>
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #33 on: November 26, 2019, 05:04:49 AM »
Faltaría un cast:
Code: (Espiral01c.c) [Select]
  108: pMainDIB[i] = (int) miPaleta[m];

Ya voy a entender lo de la paleta  :biggrin:

caballero

  • Member
  • *****
  • Posts: 1214
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #34 on: November 26, 2019, 05:19:50 AM »
 :thumbsup:No tiene mucho misterio, pero es una herramienta muy potente para la programación de gráficos.
The logic of the error is hidden among the most unexpected lines of the program

caballero

  • Member
  • *****
  • Posts: 1214
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #35 on: November 27, 2019, 07:31:39 AM »
Hello, a simple stright line path example. Don't know if anyone want to try it
The logic of the error is hidden among the most unexpected lines of the program

Biterider

  • Member
  • ***
  • Posts: 392
  • ObjAsm32 + ObjAsm64 = ObjAsm
    • ObjAsm
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #36 on: November 27, 2019, 05:14:24 PM »
Hi
Works fine on W10-64 Home  :thumbsup:

Biterider

daydreamer

  • Member
  • ****
  • Posts: 943
  • watch Chebyshev on the backside of the Moon
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #37 on: November 27, 2019, 10:38:34 PM »
Hello, I have just uploaded my fifth chapter about basic maths for 2d graphics. It is a work in progress that I have just started. The last point is for moving a point between 2 points in the screen in a straight way. If anyone want to try it before I upload more stuff in this chapter is welcome to do it. For the moment only in Spanish and only for TinyC. Regards.
I really like your spirals,I tested move path between 2 points program and it works

 
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D

caballero

  • Member
  • *****
  • Posts: 1214
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #38 on: November 29, 2019, 07:49:44 AM »
Uploaded the stright line path source code in chapter 5.1.4.1.
The logic of the error is hidden among the most unexpected lines of the program

caballero

  • Member
  • *****
  • Posts: 1214
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #39 on: December 01, 2019, 10:19:40 PM »
I have updated the fifth chapter including two path examples: circular and splines. Attached here one for the last one: 5 random generating points calculated each time the program starts.
The logic of the error is hidden among the most unexpected lines of the program

daydreamer

  • Member
  • ****
  • Posts: 943
  • watch Chebyshev on the backside of the Moon
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #40 on: December 02, 2019, 03:47:40 AM »
I have updated the fifth chapter including two path examples: circular and splines. Attached here one for the last one: 5 random generating points calculated each time the program starts.
works fine,also nice polar rose
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D

caballero

  • Member
  • *****
  • Posts: 1214
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #41 on: December 02, 2019, 04:58:48 AM »
Thank you for test it  :thumbsup:
The logic of the error is hidden among the most unexpected lines of the program

Siekmanski

  • Member
  • *****
  • Posts: 1929
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #42 on: December 02, 2019, 11:19:22 AM »
They work fine, as all your demos do on my Win 8.1 64 bit PC.  :thumbsup:
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 1214
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #43 on: December 03, 2019, 09:38:28 AM »
Talking about paths, here a nice program that I found some time ago here that I have translated to tiny c, the original in freebasic flickers a bit.
The logic of the error is hidden among the most unexpected lines of the program

daydreamer

  • Member
  • ****
  • Posts: 943
  • watch Chebyshev on the backside of the Moon
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #44 on: December 04, 2019, 02:20:34 AM »
Talking about paths, here a nice program that I found some time ago here that I have translated to tiny c, the original in freebasic flickers a bit.
It works
I want your version of polar rose with source please
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D