Journals Information
Computer Science and Information Technology Vol. 7(2), pp. 40 - 47
DOI: 10.13189/csit.2019.070202
Reprint (PDF) (673Kb)
A Simple and Fast Line-Clipping Method as a Scratch Extension for Computer Graphics Education
Dimitrios Matthes , Vasileios Drakopoulos *
Faculty of Sciences, Department of Computer Science and Biomedical Informatics, Lamia, 35131, Central Greece, Greece
ABSTRACT
Line clipping is a fundamental topic in an introductory computer graphics course. An understanding of a line-clipping algorithm is reinforced by having students write actual code and see the results by choosing a user-friendly integrated development environment such as Scratch, a visual programming language especially useful for children. In this article a new computation method for 2D line clipping against a rectangular window is introduced as a Scratch extension in order to assist computer graphics education. The proposed method has been compared with Cohen-Sutherland, Liang-Barsky, Cyrus-Beck, Nicholl-Lee-Nicholl and Kodituwakku-Wijeweera-Chamikara methods, with respect to the number of operations performed and the computation time. The performance of the proposed method has been found to be better than all of the above-mentioned methods and it is found to be very fast, simple and can be implemented easily in any programming language or integrated development environment. The simplicity and elegance of the proposed method makes it suitable for implementation by the student or pupil in a lab exercise.
KEYWORDS
Computer Graphics Education, Line Clipping, Programming Education
Cite This Paper in IEEE or APA Citation Styles
(a). IEEE Format:
[1] Dimitrios Matthes , Vasileios Drakopoulos , "A Simple and Fast Line-Clipping Method as a Scratch Extension for Computer Graphics Education," Computer Science and Information Technology, Vol. 7, No. 2, pp. 40 - 47, 2019. DOI: 10.13189/csit.2019.070202.
(b). APA Format:
Dimitrios Matthes , Vasileios Drakopoulos (2019). A Simple and Fast Line-Clipping Method as a Scratch Extension for Computer Graphics Education. Computer Science and Information Technology, 7(2), 40 - 47. DOI: 10.13189/csit.2019.070202.