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

  • : 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.

Howdy, Stranger!

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

Categories

In this Discussion