class ROOT_PARAMETERS

(source code)

Description

Root parameters

note
	description: "Root parameters"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2022-11-15 19:56:03 GMT (Tuesday 15th November 2022)"
	revision: "5"

class
	ROOT_PARAMETERS

inherit
	SATELLITE_PARAMETERS

create
	make_default

feature -- Factory

	new_model: REPLICATED_IMAGE_MODEL
		local
			rectangle: EL_RECTANGLE; drawing: CAIRO_DRAWING_AREA
		do
			image_path.expand
			create drawing.make_with_path (image_path)
			create rectangle.make (0, 0, drawing.width, drawing.height)
			create Result.make (rectangle.to_point_array, drawing)
			across transformation_list as transform loop
				transform.item (Result)
			end
		end

feature {NONE} -- Internal attributes

	image_path: FILE_PATH

end