Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program that displays a series of images overlayed on top of each other. Create a StackPane. Create a method named blendModeObjects that returns

image text in transcribed

Create a program that displays a series of images overlayed on top of each other.

Create a StackPane.

Create a method named blendModeObjects that returns a Node. This means that itll return a node that will then be added to the root in order to display all of the shapes.

Create a group object;

Create a circle with 50,50 as coordinates and radius of 25

Fill the circle with DARKGRAY

Create a rectangle with coordinates(50,50, 50, 50)

Fill color should be set to BLUEVIOLET

Now you need to blend the two.

i.Blend is an effect that combines two objects using one of the predefined blend modes. A blend mode defines the manner in which the objects are mixed together. For example, in figure below, you can see examples of some blend modes applied to an intersecting circle and a square.

Create a rectangle(170, 50, 50, 50) with a BLUEVIOLET fill

Create a circle(170, 50, 25) with a CORAL fill

Now create a circle with a piece cut out of it:

i.Create a circle(50, 150, 25) with a NAVY fill

ii.Create a rectangle(50, 150, 50, 50) with a WHITE fill

iii.Set the Blend Mode to SRC_ATOP

iv.When you add the circle and rectangle to the root, make sure you add the circle first, and then the rectangle.

Java Ex Program 2 Blended Shape Create a program that displays a series of images gverlaved on top of each other. 1. 2. Create a StackPaoe. Create a method named blendModeQbiests that returns a Node. This means that it'll return a node that will then be added to the root in order to display all of the shapes a. b. c. d. e. f. Create a group object; Create a circle with 50,50 as coordinates and radius of 25 Fill the circle with DARKGRAY Create a rectangle with coordinates(50,50, 50, 50) Fill color should be set to BLUEVIOLET Now you need to blend the two. Blend is an effect that combines two objects using one of the predefined blend modes. A blend mode defines the manner in which the objects are mixed together. For example, in figure below, you can see examples of some blend modes applied to an intersecting circle and a square. i. - MULTIPLY SRC_ ATOP SRC OVER g. Create a rectangle(170, 50, 50, 50) with a BLUEVIOLET fill h. Create a circle(170, 50, 25) with a CORAL fil i. Now create a circle with a piece cut out of it: i. Create a circle(50, 150, 25) with a NAVY fill ii. Create a rectangle(50, 150, 50, 50) with a WHITE fill i. Set the Blend Mode to SRC_ATOP iv. When you add the circle and rectangle to the root, make sure you add the circle first, and then the rectangle

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

Students also viewed these Databases questions

Question

5. Describe the visual representations, or models, of communication

Answered: 1 week ago