Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

need help with old exam question

  • 03-08-2010 6:09pm
    #1
    Registered Users, Registered Users 2 Posts: 1,885 ✭✭✭


    if anyone can help me on these two questions, i'd greatly appeciate it.

    (b) Consider the Scalable Vector Graphics (SVG) code provided below, which generates
    the lime-green polygon image as depicted. Modify this code so that the polygon’s scale
    changes on the page, so that after one full second its size is zero in both the horizontal
    and vertical directions. (7 marks)
    <svg xmlns="http://www.w3.org/2000/svg"&gt;
    <polygon fill="lime" stroke="blue" stroke-width="10"
    points="850,75 958,137.5 958,262.5
    850,325 742,262.6 742,137.5" />
    </svg>
    (c) Consider the Scalable Vector Graphics (SVG) code provided below, which generates
    the red star image as depicted. Amend this code so that this star shape is duplicated 100
    times at different (random) positions on the screen, using the cloneNode() approach.
    Note that the javascript function Math.random() produces a random floating-point
    number between 0 and 1. (8 marks)
    <svg xmlns="http://www.w3.org/2000/svg"&gt;
    <polygon fill="red" stroke="blue" stroke-width="10"
    points="350,75 379,161 469,161 397,215 423,301
    350,250 277,301 303,215 231,161 321,161" />
    </svg>
    ____________________
    polygon01.png________________________________________________


Comments

  • Registered Users, Registered Users 2 Posts: 547 ✭✭✭KylieWyley


    Sam Redfern course?

    That scaling stuff is all in his notes on the part about javascript interacting with SVG.


  • Registered Users, Registered Users 2 Posts: 1,885 ✭✭✭PomBear


    KylieWyley wrote: »
    Sam Redfern course?

    That scaling stuff is all in his notes on the part about javascript interacting with SVG.

    cheers, was having trouble finding it.


Advertisement