Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder7.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Richard Ashbery Newsgroups: comp.sys.acorn.programmer Subject: Re: Rotating a Colour-Filled Square Date: Thu, 14 Nov 2019 15:21:54 +0000 (GMT) Organization: None Lines: 22 Message-ID: <5812d9952ebasura@invalid.addr.uk> References: <5811cae024basura@invalid.addr.uk> <468e414f-a0ff-41fd-bc80-216dd45fd082@googlegroups.com> X-Trace: individual.net 9lIqZn1Sc8uNUoASYN+mxQAZjFFC9kKlxFp7ciW2EhScaCelfL X-Orig-Path: uwclub.net!richard.ashbery Cancel-Lock: sha1:IoEv1gFX98ViFBc0CfbIPssN+ew= User-Agent: Pluto/3.16 (RISC OS/5.25) NewsHound/v1.52-32 Xref: csiph.com comp.sys.acorn.programmer:5867 In article <468e414f-a0ff-41fd-bc80-216dd45fd082@googlegroups.com>, wrote: > On Tuesday, 12 November 2019 14:06:20 UTC, Richard Ashbery wrote: > > Has anyone got a simple routine that rotates a colour filled > > square about the screen centre? > Another approach, since you only want a square, is to create a > sprite of the required size (either programmatically, or with > Paint). Then to rotate use OS_SpriteOp 56 (plot sprite transformed) > and provide a matrix which rotates as desired, or indeed any other > transformation that can be described with a matrix, Sprow. I don't suppose you have an example(s). I've never done much with Sprites and I wouldn't call my self a proficient programmer. All the stuff I've 'programmed' so far involves fairly simple BASIC graphics based on what I've gleaned from the BBC BASIC Reference Manual. How easy would it be to implement a rotation parameter to rotate a filled rectangle in a similar way to ELLIPSE FILL? Richard