Designing a Star - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Designing a Star

Hi i really need help with a project for school. We have to make an animation program. We chose to design a star that appears and disappears back to back i dont know how to do the animation and im lost so if there is any one out there that can help me that would be great and we are using MASM 615

Comments

  • gautamgautam Posts: 642Member
    : Hi i really need help with a project for school. We have to make an animation program. We chose to design a star that appears and disappears back to back i dont know how to do the animation and im lost so if there is any one out there that can help me that would be great and we are using MASM 615
    :
    :

    You mean fade.

    Regarding drawing of the star, you can say 0xff is a white pixel, so you will have data of 1 byte each = 0xff - something like

    .section data
    0x00, 0x00, 0xff, 0x00, 0x00,
    0x00, 0xff, 0xff, 0xff, 0x00,
    0xff, 0xff, 0xff, 0xff, 0xff

    Now you see pixels making a triangle - You see the pattern here. Now to fade you will have just slow convert the 0xff to 0x00 i.e. from white to black.

    Now I don't really know asm - so the syntax might be wrong.
Sign In or Register to comment.