Skip to content

Ifi-DiAgnostiK-Project/LiaScript_ImageQuiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiaScript Image Quiz Makros

This course contains makros for image quizzes.

To use these macros within your document, simply import it into LiaScript via:

import: https://raw.githubusercontent.com/Ifi-DiAgnostiK-Project/LiaScript_ImageQuiz/refs/heads/main/README.md

Image selection quiz

This is a quiz where you need to select the correct images by clicking on them.

How to use

The makro takes four parameters:

@selectimages(@uid,<size>,<correct>,<wrong>)

, where

  • @uid generates an id for the quiz which is important for correct implementation
  • specifies the image size in rem (line height)
  • are the paths of the correct images, separated by (|)
  • are the paths of the incorrect images.

Example

Try to select the correct images! (Hint: Cars are cool, but planes can fly!)

@selectimages(@uid,20,@mustang|@f18,@chevrolet|@ford)

Image area quiz

This is a quiz where you need to click on the correct areas of one image.

How to use

The makro takes three parameters:

@selectimagezones(@uid,<image>,<zones>)

, where

  • @uid generates an id for the quiz which is important for correct implementation
  • specifies the path to the underlying image,
  • are the clickable zones in the image.

Zones are defined by their pixel coordinates in the image. The coordinates are separated by ;, multiple zones are separated by |. There are 3 types of zones, defined by the number of their coordinates:

  • circle: x1;y1;r
  • rectangle: x1;y1;x2;y2
  • polygon: x1;y1;x2;y2;x3;y3;...

Here's a tool to generate the coordinate strings

Example

Try to click the wheels and the front window!

@selectimagezones(@uid,@chevrolet,421;297;48 | 336;122;467;168 | 498;244;518;221;528;191;536;208;537;233;531;258;506;262)

About

LiaScript-Template for Image Quizzes

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors