Bouncy Balls in C with Cairo and XLib

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 22

  • @Techiesse
    @Techiesse ปีที่แล้ว +1

    Awesome tutorial. Thanks!
    Tip: the music competes with your voice making it harder to focus. Consider not putting music or making it way quieter.

  • @kenjinks5465
    @kenjinks5465 ปีที่แล้ว

    The four lines could be two @16:50 [62..65]
    if ((b->x+b->r>=WIDTH) || (b->x=b->rvx*=-1; //check velocity horizontal bounds
    if ((b->y+b->r>=HEIGHT) || (b->y=b->rvy*=-1; //check velocity vertical bounds
    Why did you choose that way? Maybe for legibility, just curious

  • @neon8940
    @neon8940 5 ปีที่แล้ว +3

    Can you show me how to do similar animation with cairo and GTK+3 together with buttons and GUI? I'm very interested in this. Since I heard that X11 is being replaced with wayland.

    • @neon8940
      @neon8940 5 ปีที่แล้ว

      @@alexlugo5967 Thank you very much! I'll be waiting.

    • @nassimabennour3021
      @nassimabennour3021 4 ปีที่แล้ว

      @@alexlugo5967 i'll be waiting too !

  • @zamnnnnnn
    @zamnnnnnn 4 หลายเดือนก่อน

    well... that's a pretty good baslls! like btw.

  • @mizel_almizel
    @mizel_almizel 3 ปีที่แล้ว

    I’m try to include QT library
    Do you have any idea 💡

  • @neon8940
    @neon8940 5 ปีที่แล้ว +2

    Thanks for the answer! I think this is not an error, but X11's reaction to breaking the connection with the program window. I'm not a cool programmer like you, can this be fixed in the code?

    • @neon8940
      @neon8940 5 ปีที่แล้ว

      @@alexlugo5967Linux Mint 19.3 Cinnamon.

  • @wendolinmendoza517
    @wendolinmendoza517 2 ปีที่แล้ว

    7:22 naughty

  • @PaperBenni
    @PaperBenni 4 ปีที่แล้ว +2

    Could you put the program on your github?

    • @PaperBenni
      @PaperBenni 4 ปีที่แล้ว

      @@alexlugo5967 Thanks!

  • @PaperBenni
    @PaperBenni 4 ปีที่แล้ว

    Hey, sorry to bother you again, but I am completely stuck. I'm unable to get cairo to draw anything on my xlib surface. Here's the program: github.com/instantOS/instantWM/commit/e072b0e9efc81ddcc9ae4f404d212d7f678b8783 Been at it for hours and it either crashes or does nothing. (Don't mind the crappy execution, this should just paint the screen white as a test). Documentation on xlib is awful. Would be awesome if you could help me figure out what the problem is.

  • @JCake
    @JCake 3 ปีที่แล้ว +2

    Great video and huge help, but I can't get over the fact that you omit the spaces between operators 🤣

  • @Adiounys
    @Adiounys 3 ปีที่แล้ว

    5000ms is 5s