Rosetta Code:Village Pump/Suggest a programming task: Difference between revisions

Content added Content deleted
(Design patterns need a lot of work and/or added constraints before they could be rosetta tasks)
Line 93: Line 93:
* Conversion from sRGB to HSL, HSV and CMYK.
* Conversion from sRGB to HSL, HSV and CMYK.
:That would not be Color Space conversion. You can not convert a color space into a color model. sRGB is a color space that uses RGB color model. HSL, HSV and CMYK are color models. Maybe you mean color model conversion? However, conversion to CMYK requires information about the inks, paper and printing device used. In practice, it requires color space conversion, too. --[[User:PauliKL|PauliKL]] 15:29, 2 December 2009 (UTC)
:That would not be Color Space conversion. You can not convert a color space into a color model. sRGB is a color space that uses RGB color model. HSL, HSV and CMYK are color models. Maybe you mean color model conversion? However, conversion to CMYK requires information about the inks, paper and printing device used. In practice, it requires color space conversion, too. --[[User:PauliKL|PauliKL]] 15:29, 2 December 2009 (UTC)


===Terminal Control===
* Clearing the terminal window
* Moving the cursor to a specific position on the screen (such as row 6, column 4)
* Allow data entry in a specific place on the screen
* Restict data entry fields to a specific length (for example restrict input to 5 characters, do not allow a 6th character to be entered, and restrict the cursor from moving beyond the input
length
* This time restrict the input field on screen to a specific length, but allow the left hand side
of the field to disappear, if the length of input exceeds the on screen input length (for example
the input field may allow 30 characters on screen, but if you enter 40 characters, only the last 30
are shown on screen (unless you press the backspace key). Do not let the cursor move beyond the
designated on screen field length
* Draw a box at a specific position on the terminal, with a specific height and width. For example, draw a box at row 3, column 7, 40 characters wide, and 8 characters in height.
* Display text within the box. If the text does not fit in the box, make the text roll up and
down in response to cursor movements, so that the text can be displayed.
* Allow freeform data entry into a box on the screen.
* Draw a box on the screen, preserving the contents of what was underneath. Now make the box disappear, so that the screen looks as it did, before the box was drawn.


==API-specific==
==API-specific==