Making a "gif" with...
 
Notifications
Clear all

Making a "gif" with JavaScript

1 Posts
1 Users
0 Reactions
138 Views
(@ehsanmomeni)
Eminent Member
Joined: 2 years ago
Posts: 9
Topic starter  

I would like to create a gif-type animation if the distance between me and the person ahead/behind increses/decreses. Since SimHUB doesn't support gif I was woundering if this could be done with JS?

Something like this:

var gapAhead = $prop('IRacingExtraProperties.iRacing_NonRelativeDriverAheadInClass_00_GapChangeLastLap')

if (gapAhead >= 0) {
    return 'The JS-script would go here'
}

else {
   return 'Same JS-script, but with other images'
}

 


   
Quote
Topic Tags
Share: