Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8357837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:36:48+00:00 2026-06-09T10:36:48+00:00

Is there a way to insert a smiley animation on an HTML page, which’s

  • 0

Is there a way to insert a smiley animation on an HTML page, which’s smile depends on a value? I have some values between -1 and 1 from a Naive Bayes classifier, which correspond to negative and positive sentiment respectively. Is it possible to visualise this sentiment on a smiley face, meaning if the value is close to -1 the face will be sad 🙁 or if it’s close to 1 the face will be happy 🙂 ..?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:36:49+00:00Added an answer on June 9, 2026 at 10:36 am

    Assuming that you don’t want to do any server-side work, the only option I can think of to do this client-side is using the HTML5 canvas. If you don’t know what that is, you first need to read a bit about it and how to draw things on it using JavaScript.

    First step is to draw the static part of the emoticon (i.e., the borders of the face and the eyes, etc..). You probably place it as in image on the canvas. Example on how to do that:

    var ctx = document.getElementById('canvas').getContext('2d');
    var img = new Image();
    img.src = 'images/face.png';
    img.onload = function() {
        ctx.drawImage(img, 0, 0); //draws img where its left-upper corner is at 0, 0
    };
    

    Then, to draw the smile-curve, you need to use Bezier Curves. You just move the control point depending on your value properly. Here’s a tutorial on how to draw Bezier Curves on a canvas: Link

    Hope that helped in any manner!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an easy way to insert a TAG plus tag values in a
Is there a way that I can insert values into a VB.NET Dictionary when
is there any way via which we can interact to iphone scheduler and insert
Is there any way to insert more than one page header to crystal reports
Is there any way to insert an HTML element, dom or code from CSS(3)?
Using aspnet 3.5, c# - Is there a way to insert Html into a
Is there a way to insert values in a drop down menu with a
I have two questions: Is there a way to insert a ThreadPool functoin that
Is there a way to insert/update a datetime value ( getdate() ) into a
Is there any way to insert facebook like into pop image of fancybox?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.