--- loncom/homework/randomlylabel.pm 2004/02/11 21:52:56 1.12.2.1 +++ loncom/homework/randomlylabel.pm 2024/04/05 02:43:25 1.35 @@ -1,8 +1,7 @@ -#!/usr/bin/perl # The LearningOnline Network with CAPA # randomlabel.png: composite together text and images into 1 image # -# $Id: randomlylabel.pm,v 1.12.2.1 2004/02/11 21:52:56 albertel Exp $ +# $Id: randomlylabel.pm,v 1.35 2024/04/05 02:43:25 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -26,7 +25,181 @@ # # http://www.lon-capa.org/ # -### + +=pod + +=head1 Syntax of randomlylabel commands + +Required items are: (one of BGIMG or SIZE) and OBJCOUNT + +=over 4 + +=item BGIMG + +/home/... file +/res/ ... URL +or href (href must contain http://...) +Expected to be HTTP escaped + +=item SIZE + +width:height + +Creates a blank canvas of size width,height. + +=item BGCOLOR + +either I or a color hexstring + +Sets the background color, if SIZE is used to create a new canvas, +I makes the background transparent. + +=item OBJCOUNT + +a number + +=item OBJTYPE + +a colon seperated list of types, supported types are + + B B B B B B B